Mailbox Sample

This sample creates a thread-safe instance of a mailbox. It spawns instances of reader and writer threads which inherit the mailbox instance and begin reading and writing when able. This sample runs for 1 minute before shutting down.

Source Files

File Description
Mailbox.cpp The main source file, which contains the mailbox class and a small main function to demonstrate the mailbox in use.
Mailbox.h Contains the mailbox class declaration and any required header files

Building the Sample

Build the sample in any of the four available configurations: Debug, Release (to build MailBox.exe) or RTSSDebug, RTSSRelease (to build MailBox.rtss).

Running the Sample

Run the compiled binary with no arguments.

Expected Results

Remarks

APIs Referenced

RTAPI