Changeset 11082


Ignore:
Timestamp:
Oct 14, 2008, 2:02:28 AM (11 years ago)
Author:
gb
Message:

raise_thread_interrupt(): don't assume that the TCR has a non-null
pending_io struct when Windows thinks that we have pending I/O.

File:
1 edited

Legend:

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

    r11015 r11082  
    104104    if (io_pending) {
    105105      pending_io * pending = (pending_io *) (target->foreign_exception_status);
    106       if (pCancelIoEx) {
    107         pCancelIoEx(pending->h, pending->o);
     106      if (pending) {
     107        if (pCancelIoEx) {
     108          pCancelIoEx(pending->h, pending->o);
     109        } else {
     110          CancelIo(pending->h);
     111        }
    108112      } else {
    109         CancelIo(pending->h);
     113        QueueUserAPC(nullAPC, hthread, 0);
    110114      }
    111     } else {
    112       QueueUserAPC(nullAPC, hthread, 0);
    113115    }
    114116
Note: See TracChangeset for help on using the changeset viewer.