xref: /haiku/headers/private/libroot/locale/ICUThreadLocalStorageValue.h (revision 9f66f05b58e3a033984f1271ac986a2c99226103)
1 /*
2  * Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _ICU_THREAD_LOCAL_STORAGE_VALUE_H
6 #define _ICU_THREAD_LOCAL_STORAGE_VALUE_H
7 
8 
9 #include <pthread.h>
10 
11 #include <SupportDefs.h>
12 
13 
14 namespace BPrivate {
15 namespace Libroot {
16 
17 
18 typedef unsigned int ICUConverterID;
19 
20 
21 struct ICUThreadLocalStorageValue {
22 			ICUConverterID		converterID;
23 
24 								ICUThreadLocalStorageValue();
25 								~ICUThreadLocalStorageValue();
26 
27 	static	status_t			GetInstanceForKey(pthread_key_t tlsKey,
28 									ICUThreadLocalStorageValue*& instanceOut);
29 };
30 
31 
32 }	// namespace Libroot
33 }	// namespace BPrivate
34 
35 
36 #endif	// _ICU_THREAD_LOCAL_STORAGE_VALUE_H
37