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

53 lines
1.0 KiB
C
Raw Normal View History

/********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2012, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
1999-08-16 21:50:52 +00:00
#ifndef MULTITHREADTEST_H
#define MULTITHREADTEST_H
1999-08-16 21:50:52 +00:00
#include "intltest.h"
#include "mutex.h"
/**
* Tests actual threading
**/
class MultithreadTest : public IntlTest
{
public:
MultithreadTest();
virtual ~MultithreadTest();
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 that threads even work
**/
void TestThreads(void);
/**
* test that arabic shaping can work in threads
**/
void TestArabicShapingThreads(void);
1999-08-16 21:50:52 +00:00
/**
* test that mutexes work
**/
void TestMutex(void);
#if !UCONFIG_NO_FORMATTING
1999-08-16 21:50:52 +00:00
/**
* test that intl functions work in a multithreaded context
**/
void TestThreadedIntl(void);
#endif
void TestCollators(void);
void TestString();
1999-08-16 21:50:52 +00:00
};
#endif
1999-08-16 21:50:52 +00:00