/** * Mutex is a helper class for convenient locking and unlocking of a UMutex. * * Creating a local scope Mutex will lock a UMutex, holding the lock until the Mutex * goes out of scope. * * If no UMutex is specified, the ICU global mutex is implied. * * For example: * * static UMutex myMutex; * * void Function(int arg1, int arg2) * { * static Object* foo; // Shared read-write object * Mutex mutex(&myMutex); // or no args for the global lock * foo->Method(); * // When 'mutex' goes out of scope and gets destroyed here, the lock is released * } * * Note: Do NOT use the form 'Mutex mutex();' as that merely forward-declares a function * returning a Mutex. This is a common mistake which silently slips through the * compiler!!
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.