c_pthread_t type

Undocumented

Methods

c_pthread_join(thread:c_pthread_t)
Call PTHREAD_JOIN(3). Not recommended for direct calls, use Thread type instead.

Returns

Arr with [Int, Any]. Int is the status returned by pthread_join(). Any is the value returned by the thread of status is 0, Any is null if status is non-zero.

Example

F join(t:Thread) {
	join_result = c_pthread_join(t.thread)
	if join_result[0] {
		throw Error("Failed to c_pthread_join")
	}
	join_result[1]
}
id(thread:c_pthread_t)
Get pthread id as string of characters. This is opaque string which can be used for displaying and comparing to other pthreads ids.

Returns

Str
Str(t:c_pthread_t) Source: stdlib.ngs:3917
Undocumented