Home Libraries Author Links

mutextest.c File Reference


Detailed Description

Usage sample and test of the Abstract Data Type StmMutex.

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 StmMutex.

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

Variables

static StmMutex mutex
 The mutex 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).