mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-31 17:52:27 +00:00
Do more quality assurance work
This commit is contained in:
parent
67b19ae733
commit
d461c6f47d
31 changed files with 194 additions and 108 deletions
|
@ -36,14 +36,6 @@
|
|||
#include "third_party/nsync/futex.internal.h"
|
||||
#include "third_party/nsync/wait_s.internal.h"
|
||||
|
||||
void _pthread_unwind(struct PosixThread *pt) {
|
||||
struct _pthread_cleanup_buffer *cb;
|
||||
while ((cb = pt->pt_cleanup)) {
|
||||
pt->pt_cleanup = cb->__prev;
|
||||
cb->__routine(cb->__arg);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Terminates current POSIX thread.
|
||||
*
|
||||
|
@ -89,7 +81,6 @@ wontreturn void pthread_exit(void *rc) {
|
|||
STRACE("pthread_exit(%p)", rc);
|
||||
|
||||
// free resources
|
||||
_pthread_unwind(pt);
|
||||
__cxa_thread_finalize();
|
||||
_pthread_decimate();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue