Changeset 12379


Ignore:
Timestamp:
Jul 9, 2009, 9:09:55 AM (10 years ago)
Author:
gb
Message:

destroy_semaphore(): if lisp_global(IN_GC) is true in the USE_POSIX_SEMAPHORES
case, don't call free(), just use postGCfree() to queue for later free() call.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/thread_manager.c

    r11761 r12379  
    722722#ifdef USE_POSIX_SEMAPHORES
    723723    sem_destroy((sem_t *)*s);
    724     free(*s);
     724    if (lisp_global(IN_GC)) {
     725      postGCfree(*s);
     726    } else {
     727      free(*s);
     728    }
    725729#endif
    726730#ifdef USE_MACH_SEMAPHORES
Note: See TracChangeset for help on using the changeset viewer.