Home Libraries Author Links

conditiontest.c File Reference


Detailed Description

Usage sample and test of the Abstract Data Type StmCondition.

Version:
1.11-r319
Date:
2007-11-15 17:35:00 (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 StmCondition.

Definition in file conditiontest.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 conditiontest.

Variables

static StmMutex mutex
 The mutex object.
static StmCondition cond
 The condition variable.
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).