game-ai/src/main/java/com/jzy/game/ai/btree/decorator/SemaphoreGuard.java
/**
	 * Releases the semaphore.
	 * <p>
	 * This method is called when the task exits.
	 */
Releases the semaphore.

This method is called when the task exits.
Releases the semaphore . This method is called when the task exits .
@Override
	public void end() {
		if (semaphoreAcquired) {
			if (semaphore == null) {
				semaphore = NonBlockingSemaphoreRepository.getSemaphore(name);
			}
			semaphore.release();
			semaphoreAcquired = false;
		}
		super.end();
	}
@ Override public void end ( ) { if ( semaphoreAcquired ) { if ( semaphore == null ) { semaphore = NonBlockingSemaphoreRepository . getSemaphore ( name ) ; } semaphore . release ( ) ; semaphoreAcquired = false ; } super . end ( ) ; }
Releases the semaphore.
Releases the semaphore .