haiku/headers/private/libroot/locale/ICUThreadLocalStorageValue.h
Oliver Tappe bcadc4ca66 Start work on multibyte-support in locale backend.
* add ICUThreadLocaleStorageValue, which will be used to maintain
  per-thread ICU converters
* add ICUConverterManager
2011-11-22 16:55:39 +01:00

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