Home Libraries Author Links

processsemaphoretest.c File Reference


Detailed Description

Usage sample and test of the Abstract Data Type StmProcessSemaphore.

Version:
1.11-r319
Date:
2007-11-15 17:35:01 (Tom)
Author:
Tom Michaelis
SysToMath
Wittelsbacherstr. 7
D-80469 Munich
Contact:
http://www.SysToMath.com
mailto:Tom.Michaelis@SysToMath.com
This C program file contains the implementation of data types and functions demonstrating the usage and testing the implementation of StmProcessSemaphore.

Definition in file processsemaphoretest.c.

Go to the source code of this file.

Functions

static void * handler (void *data)
 The worker thread function.
int main ()
 Main function implementing the command processsemaphoretest.

Variables

static StmProcessSemaphore semaphore
 The process semaphore object.
static int counter
 The shared resource.


© Copyright Tom Michaelis 2002-2007

Distributed under the SysToMath Software License (See the accompanying file license.txt or a copy at www.SysToMath.com).