c_pthread_join multimethod
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] }