Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/include/reentrant.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
* another system. Similarly, it should also be easy to remove all | * another system. Similarly, it should also be easy to remove all | ||||
* support for thread safety completely if the target environment does | * support for thread safety completely if the target environment does | ||||
* not support threads. | * not support threads. | ||||
* | * | ||||
* | * | ||||
* Implementation Details: | * Implementation Details: | ||||
* | * | ||||
* The mutex primitives used by the library (mutex_t, mutex_lock, etc.) | * The mutex primitives used by the library (mutex_t, mutex_lock, etc.) | ||||
* are macros which expand to the cooresponding primitives provided by | * are macros which expand to the corresponding primitives provided by | ||||
* the thread engine or to nothing. The latter is used so that code is | * the thread engine or to nothing. The latter is used so that code is | ||||
* not unreasonably cluttered with #ifdefs when all thread safe support | * not unreasonably cluttered with #ifdefs when all thread safe support | ||||
* is removed. | * is removed. | ||||
* | * | ||||
* The mutex macros can be directly mapped to the mutex primitives from | * The mutex macros can be directly mapped to the mutex primitives from | ||||
* pthreads, however it should be reasonably easy to wrap another mutex | * pthreads, however it should be reasonably easy to wrap another mutex | ||||
* implementation so it presents a similar interface. | * implementation so it presents a similar interface. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |