mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Clean up some of the threading code
This commit is contained in:
parent
0547eabcd6
commit
9f963dc597
62 changed files with 175 additions and 582 deletions
|
@ -25,7 +25,7 @@
|
|||
* @return nonzero if equal, otherwise zero
|
||||
*/
|
||||
int pthread_equal(pthread_t t1, pthread_t t2) {
|
||||
struct PosixThread *a = t1;
|
||||
struct PosixThread *b = t2;
|
||||
struct PosixThread *a = (struct PosixThread *)t1;
|
||||
struct PosixThread *b = (struct PosixThread *)t2;
|
||||
return a->spawn.ptid == b->spawn.ptid;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue