 |
C-chat
|
Go to the documentation of this file.
6 #ifndef C_CHAT_SYNCHRONIZATION_H
7 #define C_CHAT_SYNCHRONIZATION_H
129 #endif //C_CHAT_SYNCHRONIZATION_H
void destroyMutex(Mutex mutex)
Destroys the given mutex.
void releaseWrite(ReadWriteLock lock)
Releases write lock on the given read/write lock.
Definition: synchronization.c:42
A read/write lock to synchronize resource access.
Definition: synchronization.h:21
void releaseRead(ReadWriteLock lock)
Releases read lock on the given read/write lock.
Definition: synchronization.c:27
void acquireRead(ReadWriteLock lock)
Acquires read lock on the given read/write lock.
Definition: synchronization.c:16
ReadWriteLock createReadWriteLock()
Creates a read/write lock.
Definition: synchronization.c:6
Mutex createMutex()
Creates a mutex.
void releaseMutex(Mutex mutex)
Releases the given mutex.
void acquireMutex(Mutex mutex)
Acquires the given mutex.
void acquireWrite(ReadWriteLock lock)
Acquires write lock on the given read/write lock.
Definition: synchronization.c:38
void destroyReadWriteLock(ReadWriteLock lock)
Destroys the given read/write lock.
Definition: synchronization.c:46
A semaphore allowing mutual exclusion.
Definition: synchronization.h:13