]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/intltest/tsmthred.h
ICU-8.11.tar.gz
[apple/icu.git] / icuSources / test / intltest / tsmthred.h
CommitLineData
b75a7d8f
A
1/********************************************************************
2 * COPYRIGHT:
374ca955 3 * Copyright (c) 1997-2004, International Business Machines Corporation and
b75a7d8f
A
4 * others. All Rights Reserved.
5 ********************************************************************/
6
7
8#ifndef MULTITHREADTEST_H
9#define MULTITHREADTEST_H
10
11#include "intltest.h"
12#include "mutex.h"
13
b75a7d8f
A
14
15
16/**
17 * Tests actual threading
18 **/
19class MultithreadTest : public IntlTest
20{
21public:
22 MultithreadTest();
23 virtual ~MultithreadTest();
24
25 void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
26
27 /**
28 * test that threads even work
29 **/
30 void TestThreads(void);
31 /**
32 * test that mutexes work
33 **/
34 void TestMutex(void);
35#if !UCONFIG_NO_FORMATTING
36 /**
37 * test that intl functions work in a multithreaded context
38 **/
39 void TestThreadedIntl(void);
40#endif
41 void TestCollators(void);
374ca955 42 void TestString();
b75a7d8f
A
43};
44
45#endif
46