pthreads :: NativePthreadBarrier :: new
pthreads :: NativePthreadBarrier :: wait
pthreads $ NativePthreadBarrier :: 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
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 :: NativePthreadBarrier :: new
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Pointer :: premultiply_alpha
Multiply RGB values by their alpha valuepthreads :: NativePthreadBarrier :: wait
private extern class NativePthreadBarrier in "C" `{ pthread_barrier_t * `}
new(count: Int) `{
pthread_barrier_t *barrier = malloc(sizeof(pthread_barrier_t));
int res = pthread_barrier_init(barrier, NULL, count);
return barrier;
`}
fun destroy `{ pthread_barrier_destroy(self); `}
fun wait `{ pthread_barrier_wait(self); `}
end
lib/pthreads/extra.nit:52,1--62,3