]> git.stg.codes - stg.git/blobdiff - include/stg/locker.h
Merge remote-tracking branch 'github/master'
[stg.git] / include / stg / locker.h
index 2a395f37698b6c3cfa9e8814c850e3409c572071..16b0323f3876c78941fe41c2b7faa310741eb5bb 100644 (file)
 class STG_LOCKER
 {
 public:
+    explicit STG_LOCKER(pthread_mutex_t& m)
+        : mutex(&m)
+        {
+        pthread_mutex_lock(mutex);
+        }
     explicit STG_LOCKER(pthread_mutex_t * m)
         : mutex(m)
         {