summaryrefslogtreecommitdiffstats
path: root/src/lng.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2005-08-03 18:24:08 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2005-08-03 18:24:08 +0000
commit50aa5cd62ef4a66da41d68f4a50ddfca97863c38 (patch)
tree43f1bf415e56ace9eb3e19731d3eaffe064c8d68 /src/lng.c
parentdcd966ba50fa18853c5ae06125a5b08b0ee6b10d (diff)
downloadlibrcc-50aa5cd62ef4a66da41d68f4a50ddfca97863c38.tar.gz
librcc-50aa5cd62ef4a66da41d68f4a50ddfca97863c38.tar.bz2
librcc-50aa5cd62ef4a66da41d68f4a50ddfca97863c38.tar.xz
librcc-50aa5cd62ef4a66da41d68f4a50ddfca97863c38.zip
Multithreading
- Multithreaded access to recoding functions using same context - Engine plugin to select between UTF-8 and ISO8859-1 for Western European Languages - Fix: 'rccTo' converting FS classes - FS class support in 'rccConfigSizedToCharset'
Diffstat (limited to 'src/lng.c')
-rw-r--r--src/lng.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lng.c b/src/lng.c
index 4589de6..4b0676d 100644
--- a/src/lng.c
+++ b/src/lng.c
@@ -157,9 +157,11 @@ int rccSetLanguage(rcc_context ctx, rcc_language_id language_id) {
config = rccGetConfig(ctx, language_id);
// NULL is Okey (Off), if (!config) return -1;
+ rccMutexLock(ctx->mutex);
ctx->configure = 1;
ctx->current_language = language_id;
ctx->current_config = config;
+ rccMutexUnLock(ctx->mutex);
}
return 0;