Fix client to allow multiple to clients to run concurrently for WIN32
Remove the names for the bounce_empty, bounce_full and ctrl_c_event
events. The named events were being shared between all clients running
on a WIN32 machine which created the affect of disconnecting a client
when an input event occurred in another client. Broken in commit
f082ef9f
(v4.3.11).
This commit is contained in:
parent
d1ff2a6089
commit
a7ee69d112
1 changed files with 3 additions and 3 deletions
|
@ -160,9 +160,9 @@ stdin_read_thread(LPVOID lpParam)
|
||||||
static void
|
static void
|
||||||
sysdep_stdin_init(void)
|
sysdep_stdin_init(void)
|
||||||
{
|
{
|
||||||
bounce_empty = CreateEvent(NULL, FALSE, TRUE, "bounce_empty");
|
bounce_empty = CreateEvent(NULL, FALSE, TRUE, NULL);
|
||||||
bounce_full = CreateEvent(NULL, TRUE, FALSE, "bounce_full");
|
bounce_full = CreateEvent(NULL, TRUE, FALSE, NULL);
|
||||||
ctrl_c_event = CreateEvent(NULL, FALSE, FALSE, "Ctrl_C");
|
ctrl_c_event = CreateEvent(NULL, FALSE, FALSE, NULL);
|
||||||
CreateThread(NULL, 0, stdin_read_thread, NULL, 0, NULL);
|
CreateThread(NULL, 0, stdin_read_thread, NULL, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue