diff options
Diffstat (limited to 'winsup/cygwin/pthread.cc')
-rw-r--r-- | winsup/cygwin/pthread.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/pthread.cc b/winsup/cygwin/pthread.cc index 18f2aea5d..3dddf48b1 100644 --- a/winsup/cygwin/pthread.cc +++ b/winsup/cygwin/pthread.cc @@ -1,6 +1,6 @@ /* pthread.cc: posix pthread interface for Cygwin - Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007 Red Hat, Inc. + Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007, 2011 Red Hat, Inc. Originally written by Marco Fuykschot <marco@ddi.nl> @@ -91,6 +91,14 @@ pthread_mutex_init (pthread_mutex_t * mutex, const pthread_mutexattr_t * attr) return pthread_mutex::init (mutex, attr, NULL); } +/* Spinlocks */ +int +pthread_spin_init (pthread_spinlock_t *spinlock, int pshared) +{ + return pthread_spinlock::init (spinlock, pshared); +} + + /* Synchronisation */ int pthread_cond_init (pthread_cond_t * cond, const pthread_condattr_t * attr) |