mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-09 22:17:33 +02:00
Fixes to cond_var
This commit is contained in:
parent
8fdd2c46ba
commit
1f00e07c0a
1 changed files with 1 additions and 1 deletions
2
gc.c
2
gc.c
|
@ -581,7 +581,7 @@ size_t gc_sweep(gc_heap *h, size_t *sum_freed_ptr)
|
|||
#if GC_DEBUG_VERBOSE
|
||||
fprintf(stderr, "pthread_cond_destroy from sweep\n");
|
||||
#endif
|
||||
if (pthread_cond_destroy(&(((cond_var)p)->lock)) != 0) {
|
||||
if (pthread_cond_destroy(&(((cond_var)p)->cond)) != 0) {
|
||||
fprintf(stderr, "Error destroying condition variable\n");
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue