Fixes to cond_var

This commit is contained in:
Justin Ethier 2016-02-16 02:46:23 -05:00
parent 8fdd2c46ba
commit 1f00e07c0a

2
gc.c
View file

@ -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);
}