FastSemaphore Sample
Description
This sample is designed to demonstrate the usage and abilities of the FastSemaphore functions. The sample contains the following features:
- Uses a FastSempahore as a binary semaphore, acquiring and releasing the FastSemaphore from different threads.
- Uses the main thread to control FastSemaphore access to run 1 child thread at a time.
- Uses the main thread to control FastSemaphore access to run all children threads.
Source Files
- FastSemaphore.h
- FastSemaphore.c
- FastSemaphore_VS2017.vcxproj
- FastSemaphore_VS2017.sln
- FastSemaphore_VS2015.vcxproj
- FastSemaphore_VS2015.sln
- FastSemaphore_VS2013.vcxproj
- FastSemaphore_VS2013.sln
- FastSemaphore_VS2012.vcxproj
- FastSemaphore_VS2012.sln
Building the Sample
- Open a solution file in the corresponding Visual Studio version you are using for development.
- Build the solution.
Running the Sample
You can run the sample using RtssRun:
Rtssrun <build-path>\FastSemaphore.rtss
Remarks
This sample supports these configurations:
- RTSSDebug(x64)
- RTSSRelease(x64)
This sample requires at least two processors assigned to RTX64 and configured.
APIs Referenced