Corrected semaphores for WinCE >= 3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -300,7 +300,7 @@ private:
|
|||||||
|
|
||||||
wxSemaphoreInternal::wxSemaphoreInternal(int initialcount, int maxcount)
|
wxSemaphoreInternal::wxSemaphoreInternal(int initialcount, int maxcount)
|
||||||
{
|
{
|
||||||
#ifndef __WXWINCE__
|
#if !defined(_WIN32_WCE) || (_WIN32_WCE >= 300)
|
||||||
if ( maxcount == 0 )
|
if ( maxcount == 0 )
|
||||||
{
|
{
|
||||||
// make it practically infinite
|
// make it practically infinite
|
||||||
@@ -353,7 +353,7 @@ wxSemaError wxSemaphoreInternal::WaitTimeout(unsigned long milliseconds)
|
|||||||
|
|
||||||
wxSemaError wxSemaphoreInternal::Post()
|
wxSemaError wxSemaphoreInternal::Post()
|
||||||
{
|
{
|
||||||
#ifndef __WXWINCE__
|
#if !defined(_WIN32_WCE) || (_WIN32_WCE >= 300)
|
||||||
if ( !::ReleaseSemaphore(m_semaphore, 1, NULL /* ptr to previous count */) )
|
if ( !::ReleaseSemaphore(m_semaphore, 1, NULL /* ptr to previous count */) )
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user