* thread.cc (MTinterface::CreateSemaphore): Correctly set semaphore max.
This commit is contained in:
parent
234ad742b1
commit
4104f35e67
|
@ -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>
|
Wed Jan 3 09:44:51 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* fhandler_console.cc (fhandler_console::read): Restore missing test
|
* fhandler_console.cc (fhandler_console::read): Restore missing test
|
||||||
|
|
|
@ -434,7 +434,7 @@ MTinterface::CreateSemaphore (sem_t * _s, int pshared, int _v)
|
||||||
item->used = true;
|
item->used = true;
|
||||||
item->shared = pshared;
|
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);
|
CHECKHANDLE (NULL, 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue