File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55#if defined(NODE_SQLITE3_BOOST_THREADING )
66
77#include <boost/thread/mutex.hpp>
8-
8+
99 #define NODE_SQLITE3_MUTEX_t boost::mutex mutex;
10-
11- #define NODE_SQLITE3_MUTEX_INIT
10+
11+ #define NODE_SQLITE3_MUTEX_INIT
1212
1313 #define NODE_SQLITE3_MUTEX_LOCK (m ) (*m).lock();
14-
14+
1515 #define NODE_SQLITE3_MUTEX_UNLOCK (m ) (*m).unlock();
16-
16+
1717 #define NODE_SQLITE3_MUTEX_DESTROY mutex.unlock();
1818
1919#else
2020
2121 #define NODE_SQLITE3_MUTEX_t pthread_mutex_t mutex;
22-
22+
2323 #define NODE_SQLITE3_MUTEX_INIT pthread_mutex_init(&mutex,NULL);
24-
24+
2525 #define NODE_SQLITE3_MUTEX_LOCK (m ) pthread_mutex_lock(m);
26-
26+
2727 #define NODE_SQLITE3_MUTEX_UNLOCK (m ) pthread_mutex_unlock(m);
28-
28+
2929 #define NODE_SQLITE3_MUTEX_DESTROY pthread_mutex_destroy(&mutex);
3030
3131#endif
You can’t perform that action at this time.
0 commit comments