[PATCH 08/30] wlock.c changes for windows support


Michael Schonberg <mschonberg@...>
 

The pthread_xxx references changed to wthread_xxx

Signed-off-by: Mike Schonberg <mschonberg@nyx.com>
---
common/c_cpp/src/c/wlock.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/common/c_cpp/src/c/wlock.c b/common/c_cpp/src/c/wlock.c
index 9cd7d21..e23daa6 100644
--- a/common/c_cpp/src/c/wlock.c
+++ b/common/c_cpp/src/c/wlock.c
@@ -39,10 +39,10 @@ wlock_create( void )
{
wLockImpl* rval = calloc(1, sizeof( wLockImpl ) );

- pthread_mutexattr_t attr;
- pthread_mutexattr_init (&attr);
- pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE_NP);
- pthread_mutex_init (&rval->mMutex, &attr);
+ wthread_mutexattr_t attr;
+ wthread_mutexattr_init (&attr);
+ wthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+ wthread_mutex_init (&rval->mMutex, &attr);

return( rval );
}
--
1.7.7.6