scuffed-code/icu4c/source/test/intltest/tsmutex.h

43 lines
981 B
C
Raw Normal View History

/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2001, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
1999-08-16 21:50:52 +00:00
#ifndef MUTEXTEST_H
#define MUTEXTEST_H
#include "intltest.h"
1999-08-16 21:50:52 +00:00
#include "mutex.h"
/**
* Tests Mutex and MutexImplementation functionality using
* a custom MutexImplementation test class, simulating the behaviour
* of an actual mutex
**/
class MutexTest: public IntlTest {
public:
MutexTest();
virtual ~MutexTest();
1999-08-16 21:50:52 +00:00
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
1999-08-16 21:50:52 +00:00
/**
* test the Mutex functionality and API using subroutine TestLock
**/
void TestMutex(void);
/**
* subroutine for TestMutex
**/
void TestLock(void);
/* Was the global mutex initialized. */
static UBool gMutexInitialized;
1999-08-16 21:50:52 +00:00
private:
};
#endif
1999-08-16 21:50:52 +00:00