Allows one or more threads to exit from the area protected by the semaphore.
Reminder: Semaphores are used to define a protected code section that can only be run by a specific number of threads.
<Result> = SemaphoreEnd(<Semaphore name> [, <Number of exits>])
Number of threads still found in the protected area (without counting the ones that just exited from the semaphore).
<Semaphore name>: Character string
Name of semaphore to use.
<Number of exits>: Optional integer
Number of simultaneous exits from the area (1 by default).