lock.cc (153B)
1 #include "mutex" 2 #include "profiler/profiler" 3 4 void Mutex::lock() { 5 if (pthread_mutex_lock(&_mutex)) 6 throw Error("Failed to lock mutex"); 7 } 8
crossroadsGit mirror of https://crossroads.e-tunity.com/ | |
| git clone git://git.finwo.net/app/crossroads | |
| Log | Files | Refs | LICENSE |