Initializes a semaphore object with the specified initial count.
The initial count for the semaphore.
SyncError on error.
Initializes a semaphore object with the specified initial count.