Sha256: bf7034c99ce56a9b2754fb5710395a8bb485038e5b438343d1c21f033110e874
Contents?: true
Size: 518 Bytes
Versions: 101
Compression:
Stored size: 518 Bytes
Contents
/* ** © 2014 by Philipp Dunkel <pip@pipobscure.com> ** Licensed under MIT License. */ void FSEvents::lockingStart() { if (lockStarted) return; lockStarted = true; pthread_mutex_init(&lockmutex, NULL); } void FSEvents::lock() { if (!lockStarted) return; pthread_mutex_lock(&lockmutex); } void FSEvents::unlock() { if (!lockStarted) return; pthread_mutex_unlock(&lockmutex); } void FSEvents::lockingStop() { if (!lockStarted) return; lockStarted = false; pthread_mutex_destroy(&lockmutex); }
Version data entries
101 entries across 101 versions & 11 rubygems