mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 04:17:55 +01:00
latest changes from main rep
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Semaphore_WIN32.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Foundation/src/Semaphore_WIN32.cpp#11 $
|
||||
// $Id: //poco/Main/Foundation/src/Semaphore_WIN32.cpp#12 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Threading
|
||||
@@ -44,7 +44,7 @@ SemaphoreImpl::SemaphoreImpl(int n, int max)
|
||||
{
|
||||
poco_assert (n >= 0 && max > 0 && n <= max);
|
||||
|
||||
_sema = CreateSemaphore(NULL, n, max, NULL);
|
||||
_sema = CreateSemaphoreW(NULL, n, max, NULL);
|
||||
if (!_sema)
|
||||
{
|
||||
throw SystemException("cannot create semaphore");
|
||||
|
||||
Reference in New Issue
Block a user