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

Version Path
smock-0.1.227 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.226 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.225 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.224 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.9 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.223 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.222 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.221 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.220 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.219 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.218 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.217 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.216 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.215 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.214 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.213 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.212 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.211 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.210 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc
smock-0.1.209 node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/src/locking.cc