#include <iostream>#include "common/wave_ex.h"#include "perf/perf.h"#include "threadsafe/smart_ptr.h"#include "threadsafe/threadsafe.h"#include "threadsafe/threadsafe_counter.h"#include "threadsafe/threadsafe_map.h"#include "threadsafe/threadsafe_multimap.h"#include "threadsafe/threadsafe_queue.h"
Go to the source code of this file.
Typedefs | |
| typedef threadsafe_multimap < std::string, std::string > | multi_string_t |
| typedef threadsafe_queue < std::string > | tqueue_string_t |
| typedef smart_ptr< ATest > | ptr_t |
| typedef void *(* | get_context_fn )(void) |
| typedef void(* | test_routine_t )(void *) |
| typedef void(* | valid_fn )(void *) |
Functions | |
| static float | getRandom (void) throw () |
| static void * | getContext1 (void) |
| static void * | getSPtrContext (void) |
| static void * | getMMctx (void) |
| static void | doTest1 (IN void *pv) |
| static void | doSPtrTest (IN void *pv) |
| static void | doMultiTest (IN void *pv) |
| static void | validateSPtr (IN void *pv) |
| static void * | threadStartWrapper (IN void *pv) |
| void | threadLoop (IN int nThreads, IN get_context_fn getContext, IN test_routine_t fn, IN valid_fn valid=NULL) |
| int | main (IN int argc, IN const char *argv[]) |
| typedef threadsafe_multimap<std::string, std::string> multi_string_t |
Definition at line 49 of file threadsafe/test/test1.cpp.
| typedef threadsafe_queue<std::string> tqueue_string_t |
Definition at line 50 of file threadsafe/test/test1.cpp.
Definition at line 72 of file threadsafe/test/test1.cpp.
| typedef void*(* get_context_fn)(void) |
Definition at line 74 of file threadsafe/test/test1.cpp.
| typedef void(* test_routine_t)(void *) |
Definition at line 75 of file threadsafe/test/test1.cpp.
| typedef void(* valid_fn)(void *) |
Definition at line 76 of file threadsafe/test/test1.cpp.
| static float getRandom | ( | void | ) | throw () [static] |
Definition at line 100 of file threadsafe/test/test1.cpp.
| static void* getContext1 | ( | void | ) | [static] |
Definition at line 112 of file threadsafe/test/test1.cpp.
| static void* getSPtrContext | ( | void | ) | [static] |
Definition at line 126 of file threadsafe/test/test1.cpp.
| static void* getMMctx | ( | void | ) | [static] |
Definition at line 144 of file threadsafe/test/test1.cpp.
| static void doTest1 | ( | IN void * | pv | ) | [static] |
Definition at line 157 of file threadsafe/test/test1.cpp.
| static void doSPtrTest | ( | IN void * | pv | ) | [static] |
Definition at line 187 of file threadsafe/test/test1.cpp.
| static void doMultiTest | ( | IN void * | pv | ) | [static] |
Definition at line 205 of file threadsafe/test/test1.cpp.
| static void validateSPtr | ( | IN void * | pv | ) | [static] |
Definition at line 246 of file threadsafe/test/test1.cpp.
| static void* threadStartWrapper | ( | IN void * | pv | ) | [static] |
Definition at line 266 of file threadsafe/test/test1.cpp.
| void threadLoop | ( | IN int | nThreads, | |
| IN get_context_fn | getContext, | |||
| IN test_routine_t | fn, | |||
| IN valid_fn | valid = NULL | |||
| ) |
Definition at line 293 of file threadsafe/test/test1.cpp.
| int main | ( | IN int | argc, | |
| IN const char * | argv[] | |||
| ) |
Definition at line 338 of file threadsafe/test/test1.cpp.
1.7.1