Show
Ignore:
Timestamp:
07/16/07 03:30:29 (17 months ago)
Author:
krobillard
Message:

Atoms should now be thread safe. First thread experiment runs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/thune/thread_safe/unix/os.h

    r387 r431  
    5959 
    6060 
     61typedef pthread_t           OSThread; 
    6162typedef pthread_mutex_t     OSMutex; 
    6263 
    63 #define mutexInit(mh)        pthread_mutex_init(&mh,0) 
    64 #define mutexFree(mh)        pthread_mutex_destroy(&mh) 
    65 #define mutexLock(mh)        pthread_mutex_lock(&mh) 
    66 #define mutexUnlock(mh)      pthread_mutex_unlock(&mh) 
     64#define mutexInitF(mh)      (pthread_mutex_init(&mh,0) == -1) 
     65#define mutexFree(mh)       pthread_mutex_destroy(&mh) 
     66#define mutexLock(mh)       pthread_mutex_lock(&mh) 
     67#define mutexUnlock(mh)     pthread_mutex_unlock(&mh) 
    6768 
    6869