Changeset 21657 for trunk/src


Ignore:
Timestamp:
Jun 27, 2011, 5:17:51 PM (14 years ago)
Author:
dmik
Message:

wsock32: Fixed: Zeroing the async task structure at task termination would prevent the VSemaphore destructor to be called which caused memory leaks (which could be quite significant prior to r21656 in applications actively utilizing socket operations).

File:
1 edited

Legend:

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

    r10428 r21657  
    7676        return 0;
    7777   }
     78   dprintf(("QueueAsyncJob: started thread %x", tid));
    7879   pThreadParm->hAsyncTaskHandle = tid;
    7980   WSASetLastError(NO_ERROR);
     
    114115        }
    115116   }
    116    memset(pThreadParm, 0, sizeof(*pThreadParm));
    117117   asyncThreadMutex.leave();
    118118}
Note: See TracChangeset for help on using the changeset viewer.