use WSACreateEvent on windows