mirror of
https://review.haiku-os.org/haiku
synced 2025-01-24 07:14:48 +01:00
37 lines
687 B
C
37 lines
687 B
C
|
/*
|
||
|
* Copyright 2011, Oliver Tappe, zooey@hirschkaefer.de.
|
||
|
* Distributed under the terms of the MIT License.
|
||
|
*/
|
||
|
#ifndef _ICU_THREAD_LOCAL_STORAGE_VALUE_H
|
||
|
#define _ICU_THREAD_LOCAL_STORAGE_VALUE_H
|
||
|
|
||
|
|
||
|
#include <pthread.h>
|
||
|
|
||
|
#include <SupportDefs.h>
|
||
|
|
||
|
|
||
|
namespace BPrivate {
|
||
|
namespace Libroot {
|
||
|
|
||
|
|
||
|
typedef unsigned int ICUConverterID;
|
||
|
|
||
|
|
||
|
struct ICUThreadLocalStorageValue {
|
||
|
ICUConverterID converterID;
|
||
|
|
||
|
ICUThreadLocalStorageValue();
|
||
|
~ICUThreadLocalStorageValue();
|
||
|
|
||
|
static status_t GetInstanceForKey(pthread_key_t tlsKey,
|
||
|
ICUThreadLocalStorageValue*& instanceOut);
|
||
|
};
|
||
|
|
||
|
|
||
|
} // namespace Libroot
|
||
|
} // namespace BPrivate
|
||
|
|
||
|
|
||
|
#endif // _ICU_THREAD_LOCAL_STORAGE_VALUE_H
|