## Semaphore::Release() method


Releases lock on semaphore.

```cpp
int System::Threading::Semaphore::Release()
```


### ReturnValue

The count of locks just before [Release()](./) was called.

## See Also

* Class [Semaphore](../)
* Namespace [System::Threading](../../)
* Library [Aspose.PDF for C++](../../../)
## Semaphore::Release(int) method


Releases multiple locks on semaphore.

```cpp
int System::Threading::Semaphore::Release(int releaseCount)
```


| Parameter | Type | Description |
| --- | --- | --- |
| releaseCount | int | Number of locks to release. |

### ReturnValue

The count of locks just before [Release()](./) was called.

## See Also

* Class [Semaphore](../)
* Namespace [System::Threading](../../)
* Library [Aspose.PDF for C++](../../../)
