* net.cc (wsock_event): Add destructor.
This commit is contained in:
parent
aa7a61121e
commit
9f13167f77
|
@ -1,3 +1,7 @@
|
|||
Mon Jun 4 0:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* net.cc (wsock_event): Add destructor.
|
||||
|
||||
Sun Jun 3 09:49:55 2001 Robert Collins <rbtcollins@hotmail.com>
|
||||
|
||||
* dlfcn.cc (dlclose): Do not call FreeLibrary if the symbol to close
|
||||
|
|
|
@ -52,6 +52,12 @@ class wsock_event
|
|||
WSAOVERLAPPED ovr;
|
||||
public:
|
||||
wsock_event () : event (NULL) {};
|
||||
~wsock_event ()
|
||||
{
|
||||
if (event)
|
||||
WSACloseEvent (event);
|
||||
event = NULL;
|
||||
};
|
||||
|
||||
LPWSAOVERLAPPED prepare ();
|
||||
int wait (int socket, LPDWORD flags);
|
||||
|
|
Loading…
Reference in New Issue