cpp/thread/counting semaphore/~counting semaphore

Destroys the object.

The behavior is undefined if any thread is concurrently calling any other member function on this semaphore. This includes threads blocked in acquire, try_acquire_for, or try_acquire_until.