Changeset 16069


Ignore:
Timestamp:
May 2, 2014, 1:06:03 AM (6 years ago)
Author:
rme
Message:

In tcr_suspend_ack, abort if we wait more than 5 seconds
for a thread to signal its suspend semaphore.

File:
1 edited

Legend:

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

    r16068 r16069  
    21282128{
    21292129  if (tcr->flags & (1<<TCR_FLAG_BIT_SUSPEND_ACK_PENDING)) {
    2130     SEM_WAIT_FOREVER(tcr->suspend);
     2130    int status;
     2131
     2132    status = wait_on_semaphore(tcr->suspend, 5, 0);
     2133    if (status == ETIMEDOUT) {
     2134      fprintf(dbgout, "%s: timed out waiting on TCR %p\n",
     2135              __FUNCTION__, tcr);
     2136      abort();
     2137    }
    21312138    tcr->flags &= ~(1<<TCR_FLAG_BIT_SUSPEND_ACK_PENDING);
    21322139  }
Note: See TracChangeset for help on using the changeset viewer.