mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-07 19:58:30 +00:00
Add some more necessary locks
This commit is contained in:
parent
8b72490431
commit
91953dd308
9 changed files with 29 additions and 15 deletions
|
@ -37,6 +37,7 @@ void __cxa_printexits(FILE *f, void *pred) {
|
|||
fprintf(f, " GLOBAL DESTRUCTORS \n");
|
||||
fprintf(f, " callback arg pred \n");
|
||||
fprintf(f, "---------------------- ------------------ ------------------\n");
|
||||
__cxa_lock();
|
||||
if ((b = __cxa_blocks.p)) {
|
||||
do {
|
||||
mask = b->mask;
|
||||
|
@ -56,5 +57,6 @@ void __cxa_printexits(FILE *f, void *pred) {
|
|||
}
|
||||
} while ((b = b->next));
|
||||
}
|
||||
__cxa_unlock();
|
||||
fprintf(f, "\n");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue