* net.cc (wsock_event): Add destructor.

This commit is contained in:
Corinna Vinschen 2001-06-03 22:18:19 +00:00
parent aa7a61121e
commit 9f13167f77
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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);