semaphore: LockThread implementation change
semaphore: UnlockThread implementation change
semaphore: TryLockThread implementation change
semaphore: TimedLockThread implementation change
semaphore: GetThreadCount definition
semaphore: GetThreadCount implementation