Permalink
Browse files

fix mutex usage on windows - closes #137

  • Loading branch information...
1 parent 96e03d4 commit b6936618fb4a8d0c906ab64062bde4fe028deb79 Dane Springmeyer committed Jun 13, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/threading.h
View
@@ -8,11 +8,11 @@
#define NODE_SQLITE3_MUTEX_t HANDLE mutex;
- #define NODE_SQLITE3_MUTEX_INIT CreateMutex(NULL, FALSE, NULL);
+ #define NODE_SQLITE3_MUTEX_INIT mutex = CreateMutex(NULL, FALSE, NULL);
- #define NODE_SQLITE3_MUTEX_LOCK(m) WaitForSingleObject(m, INFINITE);
+ #define NODE_SQLITE3_MUTEX_LOCK(m) WaitForSingleObject(*m, INFINITE);
- #define NODE_SQLITE3_MUTEX_UNLOCK(m) ReleaseMutex(m);
+ #define NODE_SQLITE3_MUTEX_UNLOCK(m) ReleaseMutex(*m);
#define NODE_SQLITE3_MUTEX_DESTROY CloseHandle(mutex);

0 comments on commit b693661

Please sign in to comment.