Home | History | Annotate | Download | only in common

Lines Matching full:mutex

35  *   (empty) mutex implementation with the u_setMutexFunctions() functions.
80 * instantiate a Mutex object while doing so. The unnamed global mutex
88 * umtx_lock(NULL); // Lock the ICU global mutex
93 * an alternative C++ mutex API is defined in the file common/mutex.h
96 /* Lock a mutex.
97 * @param mutex The given mutex to be locked. Pass NULL to specify
98 * the global ICU mutex. Recursive locks are an error
101 U_CAPI void U_EXPORT2 umtx_lock ( UMTX* mutex );
103 /* Unlock a mutex. Pass in NULL if you want the single global
104 mutex.
105 * @param mutex The given mutex to be unlocked. Pass NULL to specify
106 * the global ICU mutex.
108 U_CAPI void U_EXPORT2 umtx_unlock ( UMTX* mutex );
110 /* Initialize a mutex. Use it this way:
114 * Initialization of an already initialized mutex has no effect, and is safe to do.
116 * initialize the same mutex without causing problems.
117 * @param mutex The given mutex to be initialized
119 U_CAPI void U_EXPORT2 umtx_init ( UMTX* mutex );
121 /* Destroy a mutex. This will free the resources of a mutex.
124 * Destroying an already destroyed mutex has no effect, and causes no problems.
126 * destroy the same mutex.
127 * @param mutex The given mutex to be destroyed.
129 U_CAPI void U_EXPORT2 umtx_destroy( UMTX *mutex );