Ignore:
Timestamp:
Mar 24, 2000, 8:22:51 PM (26 years ago)
Author:
sandervl
Message:

fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wsock32/new/asyncthread.cpp

    r3205 r3226  
    1 /* $Id: asyncthread.cpp,v 1.2 2000-03-23 19:21:53 sandervl Exp $ */
     1/* $Id: asyncthread.cpp,v 1.3 2000-03-24 19:22:51 sandervl Exp $ */
    22
    33/*
     
    3636  pThreadParm->asyncProc((PVOID)arg);
    3737
    38 //only for blocking hooks (currently not implemented
     38//only for blocking hooks (currently not implemented)
    3939////  if(pThreadParm->request == ASYNC_BLOCKHOOK)
    4040////    WSASetBlocking(FALSE, pThreadParm->hThread);
    4141
    42   pThreadParm->fActive = FALSE;
    43   RemoveFromQueue(pThreadParm);
    4442  free((PVOID)pThreadParm);
    4543
     
    216214   if(pThreadInfo) {
    217215        pThreadInfo->u.asyncselect.lEventsPending |= (pThreadInfo->u.asyncselect.lEvents & flags);
     216        //unblock async thread if it was waiting
     217        pThreadInfo->u.asyncselect.asyncSem->post();
     218
    218219        //cancel pending select in async select thread (if any)
    219220        so_cancel(s);
    220 
    221         //unblock async thread if it was waiting
    222         pThreadInfo->u.asyncselect.asyncSem->post();
    223221   }
    224222   asyncThreadMutex.leave();
Note: See TracChangeset for help on using the changeset viewer.