HomeSort by: relevance | last modified time | path
    Searched defs:bolt (Results 1 - 1 of 1) sorted by relevancy

  /src/external/zlib/pigz/dist/
yarn.c 99 lock *bolt; local
101 bolt = my_malloc(sizeof(struct lock_s));
102 if ((ret = pthread_mutex_init(&(bolt->mutex), NULL)) ||
103 (ret = pthread_cond_init(&(bolt->cond), NULL)))
105 bolt->value = initial;
106 return bolt;
109 void possess(lock *bolt)
113 if ((ret = pthread_mutex_lock(&(bolt->mutex))) != 0)
117 void release(lock *bolt)
121 if ((ret = pthread_mutex_unlock(&(bolt->mutex))) != 0
    [all...]

Completed in 16 milliseconds