]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/intltest/tsmutex.h
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / test / intltest / tsmutex.h
1 /********************************************************************
2 * COPYRIGHT:
3 * Copyright (c) 1997-2001, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
6
7
8 #ifndef MUTEXTEST_H
9 #define MUTEXTEST_H
10
11 #include "intltest.h"
12 #include "mutex.h"
13
14 /**
15 * Tests Mutex and MutexImplementation functionality using
16 * a custom MutexImplementation test class, simulating the behaviour
17 * of an actual mutex
18 **/
19 class MutexTest: public IntlTest {
20 public:
21 MutexTest();
22 virtual ~MutexTest();
23
24 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
25
26 /**
27 * test the Mutex functionality and API using subroutine TestLock
28 **/
29 void TestMutex(void);
30 /**
31 * subroutine for TestMutex
32 **/
33 void TestLock(void);
34
35 /* Was the global mutex initialized. */
36 static UBool gMutexInitialized;
37
38 private:
39 };
40
41 #endif
42