/** *MutexisahelperclassforconvenientlockingandunlockingofaUMutex. * *CreatingalocalscopeMutexwilllockaUMutex,holdingthelockuntiltheMutex *goesoutofscope. * *IfnoUMutexisspecified,theICUglobalmutexisimplied. * *Forexample: * *staticUMutexmyMutex; * *voidFunction(intarg1,intarg2) *{ *staticObject*foo;// Shared read-write object *Mutexmutex(&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:DoNOTusetheform'Mutexmutex();'asthatmerelyforward-declaresafunction *returningaMutex.Thisisacommonmistakewhichsilentlyslipsthroughthe *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.