Beispiel #1
0
        public MutextGuard(pthread_mutex_t _mutex)
        {
            this.mutex = _mutex;
            var ret = pthread_mutex_lock(mutex);

            if (ret != 0)
            {
                throw new System.Exception("MutextGuard::MutextGuard, pthread_mutex_lock failed, " + errorMessage(ret));
            }
        }
 public static int pthread_mutex_destroy(ref pthread_mutex_t m)
 {
     return(0);
 }
 public static int pthread_mutex_init(out pthread_mutex_t m, ref pthread_mutexattr_t ma)
 {
     return(0);
 }
 public static int pthread_mutex_unlock(ref pthread_mutex_t m)
 {
     return(0);
 }
 public static int pthread_cond_wait(ref pthread_cond_t c, ref pthread_mutex_t m)
 {
     return(0);
 }