pthreads :: NativePthreadCond :: destroy
pthreads :: NativePthreadCond :: new
pthreads :: NativePthreadCond :: signal
pthreads :: NativePthreadCond :: wait
pthreads $ NativePthreadCond :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
core :: Pointer :: defaultinit
pthreads :: NativePthreadCond :: destroy
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Pointer :: native_equals
pthreads :: NativePthreadCond :: new
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Pointer :: premultiply_alpha
Multiply RGB values by their alpha valuepthreads :: NativePthreadCond :: signal
pthreads :: NativePthreadCond :: wait
private extern class NativePthreadCond in "C" `{ pthread_cond_t * `}
new `{
pthread_cond_t cond;
int r = pthread_cond_init(&cond, NULL);
if (r == 0) {
pthread_cond_t *pcond = malloc(sizeof(pthread_cond_t));
memmove(pcond, &cond, sizeof(pthread_cond_t));
return pcond;
}
return NULL;
`}
fun destroy `{ pthread_cond_destroy(self); `}
fun signal: Int `{ return pthread_cond_signal(self); `}
fun broadcast `{ pthread_cond_broadcast(self); `}
fun wait(mutex: NativePthreadMutex) `{ pthread_cond_wait(self, mutex); `}
end
lib/pthreads/pthreads.nit:273,1--292,3