* thread.cc (MTinterface::CreateSemaphore): Correctly set semaphore max.

This commit is contained in:
Christopher Faylor 2001-01-03 18:50:25 +00:00
parent 234ad742b1
commit 4104f35e67
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed Jan 3 13:47:23 2001 Christopher Faylor <cgf@cygnus.com>
* thread.cc (MTinterface::CreateSemaphore): Correctly set semaphore
max.
Wed Jan 3 09:44:51 2001 Christopher Faylor <cgf@cygnus.com>
* fhandler_console.cc (fhandler_console::read): Restore missing test

View File

@ -434,7 +434,7 @@ MTinterface::CreateSemaphore (sem_t * _s, int pshared, int _v)
item->used = true;
item->shared = pshared;
item->win32_obj_id = ::CreateSemaphore (&sec_none_nih, _v, _v, NULL);
item->win32_obj_id = ::CreateSemaphore (&sec_none_nih, _v, LONG_MAX, NULL);
CHECKHANDLE (NULL, 1);