Semaphore

Inherits: Reference < Object

Category: Core

Brief Description

A synchronization Semaphore.

Member Functions

Error post ( )
Error wait ( )

Description

A synchronization Semaphore. Element used in multi-threadding. Initialized to zero on creation.

Member Function Description

Error post ( )

Lowers the Semaphore, allowing one more thread in.

Error wait ( )

Tries to wait for the Semaphore, if its value is zero, blocks until non-zero.

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/2.1/classes/class_semaphore.html