![]() |
ooc
1.3c
Object Oriented tollkit fo ANSI C
|
The ooc library has multithreaded and a single threaded versions.
The single threaded versions does not include any trheading support, so it is faster if you do not need using threads.
The multithreaded libraries are built on the native threading mechanism of the platform.
The following libraries are generated:
Library name | Description |
libooc.a | Multithreaded release version |
libooc_st.a | Singlethreaded release version |
libooc_d.a | Multithreaded debug version |
libooc_st_d.a | Singlethreaded debug version |
To link against the right ooc libraries you must use the following linker options.
Library name | GCC Linker flags | VC++ Linker flags |
libooc | -pthread or -fopenmp | /MT or /MD |
libooc_st | - | /MT or /MD (/ML is depreciated) |
libooc_d | -g3 -pthread or -fopenmp | /MTd or /MDd |
libooc_st_d | - | /MTd or /MDd (/MLd is depreciated) |
Version | GCC flags | VC++ flags |
Multithreaded version | -pthread | |
Singlethreaded version | -DNO_THREADS | NO_THREADS |
Debug version | -O0 -g3 | |
Release version | -DNDEBUG -O2 -g0 | NDEBUG |
Mix the flags as needed!
The following threading primitives are available: