Skip to content

Commit

Permalink
Changed lock routines to pointer usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Aug 21, 2011
1 parent 15a636a commit 385681b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shogun/base/Parallel.h
Expand Up @@ -20,14 +20,14 @@
#define PTHREAD_LOCK_T pthread_spinlock_t
#define PTHREAD_LOCK_INIT(lock) pthread_spin_init(&lock, 0)
#define PTHREAD_LOCK_DESTROY(lock) pthread_spin_destroy(&lock)
#define PTHREAD_LOCK(lock) pthread_spin_lock(lock)
#define PTHREAD_UNLOCK(lock) pthread_spin_unlock(lock)
#define PTHREAD_LOCK(lock) pthread_spin_lock(&lock)
#define PTHREAD_UNLOCK(lock) pthread_spin_unlock(&lock)
#else
#define PTHREAD_LOCK_T pthread_mutex_t
#define PTHREAD_LOCK_INIT pthread_mutex_init(&lock, 0)
#define PTHREAD_LOCK_DESTROY(lock) pthread_mutex_destroy(&lock)
#define PTHREAD_LOCK(lock) pthread_mutex_lock(lock)
#define PTHREAD_UNLOCK(lock) pthread_mutex_unlock(lock)
#define PTHREAD_LOCK(lock) pthread_mutex_lock(&lock)
#define PTHREAD_UNLOCK(lock) pthread_mutex_unlock(&lock)
#endif
#endif

Expand Down

0 comments on commit 385681b

Please sign in to comment.