|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <stdexcept>#include <string>#include <cassert>#include <cstdio>#include <rw_cmdopt.h>#include <rw_driver.h>#include <rw_alarm.h>#include <rw_thread.h>#include <rw_valcmp.h>
Go to the source code of this file.
Data Structures | |
| struct | DerivedException |
Macros | |
| #define | MAX_THREADS 0 |
| #define | NTHREADS 0 |
Enumerations | |
| enum | { exception_tag , logic_error_tag , domain_error_tag , invalid_argument_tag , length_error_tag , out_of_range_tag , runtime_error_tag , range_error_tag , overflow_error_tag , underflow_error_tag , Derived_tag } |
Functions | |
| void * | test_single_exception (void *arg) |
| void * | test_multi_exceptions (void *arg) |
| int | main (int argc, char *argv[]) |
Variables | |
| int | rw_opt_nloops = 256 * 1024 |
| int | rw_opt_nthreads = NTHREADS |
| volatile int | alarm_expired |
| #define MAX_THREADS 0 |
19.exceptions.mt.cpp - test exercising the thread safety of C++ Standard Library exception classes
$Id$
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2005-2006 Rogue Wave Software.
Definition at line 46 of file 19.exceptions.mt.cpp.
| #define NTHREADS 0 |
Definition at line 47 of file 19.exceptions.mt.cpp.
| anonymous enum |
| Enumerator | |
|---|---|
| exception_tag | |
| logic_error_tag | |
| domain_error_tag | |
| invalid_argument_tag | |
| length_error_tag | |
| out_of_range_tag | |
| runtime_error_tag | |
| range_error_tag | |
| overflow_error_tag | |
| underflow_error_tag | |
| Derived_tag | |
Definition at line 107 of file 19.exceptions.mt.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 352 of file 19.exceptions.mt.cpp.
| void * test_multi_exceptions | ( | void * | arg | ) |
Definition at line 263 of file 19.exceptions.mt.cpp.
| void * test_single_exception | ( | void * | arg | ) |
Definition at line 152 of file 19.exceptions.mt.cpp.
| volatile int alarm_expired |
Definition at line 61 of file 19.exceptions.mt.cpp.
| int rw_opt_nloops = 256 * 1024 |
Definition at line 56 of file 19.exceptions.mt.cpp.
| int rw_opt_nthreads = NTHREADS |
Definition at line 57 of file 19.exceptions.mt.cpp.