diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-02-21 12:58:11 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-02-24 18:27:25 +0000 |
commit | e7bad15bc13292defd99cb561f867d8b77692e97 (patch) | |
tree | ed4c1642999c8ec97f4de27517193cb16a505c32 /sal/inc/thread_internal.hxx | |
parent | d7fd46b5155bda021b09faecdefba26f6a59e997 (diff) |
Unify osl_{g,s}etThreadTextEncoding implementation across platforms
... using a static thread_local variable, as already was used on Windows;
this replaces the non-Windows implementation based on pthread_setspecific
and friends.
Change-Id: Iba42510dea90a9e7d1983ba4af674667055f6dfc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147624
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sal/inc/thread_internal.hxx')
-rw-r--r-- | sal/inc/thread_internal.hxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sal/inc/thread_internal.hxx b/sal/inc/thread_internal.hxx new file mode 100644 index 000000000000..09c60a5d3ed8 --- /dev/null +++ b/sal/inc/thread_internal.hxx @@ -0,0 +1,18 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#pragma once + +#include <sal/config.h> + +#include <rtl/textenc.h> + +rtl_TextEncoding getThreadTextEncodingForInitialization(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |