Zen API | Contents | Reference | Previous | Up | Next

zSemaphore_Wait
zSemaphore functions
C

    zStatus zSemaphore_Wait(zSemaphore semaphore, z64u timeout);

Parameters

Parameters | Description
z64u timeout | Timeout in microseconds, or zINFINITE to wait indefinitely.
sempahore | Semaphore object.

Description

Waits until the semaphore can be decremented or the timeout interval has elapsed.

Remarks

zERROR_TIMEOUT is returned if the timeout elapses before the semaphore can be decremented.

File

zSemaphore.h

Copyright (c) 2008-2010 by LMI Technologies Inc. All rights reserved.
Contents | Reference