FastSemaphore Sample

Description

This sample is designed to demonstrate the usage and abilities of the FastSemaphore functions. The sample contains the following features:

Source Files

Building the Sample

  1. Open a solution file in the corresponding Visual Studio version you are using for development.
  2. Build the solution.

Running the Sample

You can run the sample using RtssRun:

Rtssrun <build-path>\FastSemaphore.rtss

Remarks

This sample supports these configurations:

This sample requires at least two processors assigned to RTX64 and configured.

APIs Referenced


RtGetProcessAffinityMask

RtSetThreadPriority

RtInitializeFastSemaphore

RtAcquireFastSemaphore

RtReleaseFastSemaphore

RtReleaseAllFastSemaphore

RtQueryPerformanceCounter

RtQueryPerformanceFrequency

RtGenerateEvent

EnterCriticalSection

LeaveCriticalSection

InitializeCriticalSection

CreateThread

RtPrintf