You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -21,36 +22,36 @@ int _configthreadlocale( int per_thread_locale_type );
21
22
22
23
### Parameters
23
24
24
-
*per_thread_locale_type*<br/>
25
+
*`per_thread_locale_type`*\
25
26
The option to set. One of the options listed in the following table.
26
27
27
28
## Return Value
28
29
29
-
The previous per-thread locale status (**_DISABLE_PER_THREAD_LOCALE** or **_ENABLE_PER_THREAD_LOCALE**), or -1 on failure.
30
+
The previous per-thread locale status (**`_DISABLE_PER_THREAD_LOCALE`** or **`_ENABLE_PER_THREAD_LOCALE`**), or -1 on failure.
30
31
31
32
## Remarks
32
33
33
-
The **_configurethreadlocale** function is used to control the use of thread-specific locales. Use one of these *per_thread_locale_type* options to specify or determine the per-thread locale status:
34
+
The **`_configthreadlocale`** function is used to control the use of thread-specific locales. Use one of these *`per_thread_locale_type`* options to specify or determine the per-thread locale status:
34
35
35
36
| Option | Description |
36
37
|-|-|
37
-
| **_ENABLE_PER_THREAD_LOCALE** | Make the current thread use a thread-specific locale. Subsequent calls to **setlocale** in this thread affect only the thread's own locale. |
38
-
| **_DISABLE_PER_THREAD_LOCALE** | Make the current thread use the global locale. Subsequent calls to **setlocale** in this thread affect other threads using the global locale. |
38
+
| **`_ENABLE_PER_THREAD_LOCALE`** | Make the current thread use a thread-specific locale. Subsequent calls to **`setlocale`** in this thread affect only the thread's own locale. |
39
+
| **`_DISABLE_PER_THREAD_LOCALE`** | Make the current thread use the global locale. Subsequent calls to **`setlocale`** in this thread affect other threads using the global locale. |
39
40
| **0** | Retrieves the current setting for this particular thread. |
40
41
41
-
These functions affect the behavior of **setlocale**, **_tsetlocale**, **_wsetlocale**, and **_setmbcp**. When per-thread locale is disabled, any subsequent call to **setlocale** or **_wsetlocale** changes the locale of all threads that use the global locale. When per-thread locale is enabled, **setlocale** or **_wsetlocale** only affects the current thread's locale.
42
+
These functions affect the behavior of **`setlocale`**, **`_tsetlocale`**, **`_wsetlocale`**, and **`_setmbcp`**. When per-thread locale is disabled, any subsequent call to **`setlocale`** or **`_wsetlocale`** changes the locale of all threads that use the global locale. When per-thread locale is enabled, **`setlocale`** or **`_wsetlocale`** only affects the current thread's locale.
42
43
43
-
If you use **_configurethreadlocale** to enable a per-thread locale, we recommend that you call **setlocale** or **_wsetlocale** to set the preferred locale in that thread immediately afterward.
44
+
If you use **`_configthreadlocale`** to enable a per-thread locale, we recommend that you call **`setlocale`** or **`_wsetlocale`** to set the preferred locale in that thread immediately afterward.
44
45
45
-
If *per_thread_locale_type* is not one of the values listed in the table, this function invokes the invalid parameter handler, as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If execution is allowed to continue, this function sets **errno** to **EINVAL** and returns -1.
46
+
If *`per_thread_locale_type`* isn't one of the values listed in the table, this function invokes the invalid parameter handler, as described in [Parameter Validation](../../c-runtime-library/parameter-validation.md). If execution is allowed to continue, this function sets **`errno`** to **`EINVAL`** and returns -1.
46
47
47
48
By default, this function's global state is scoped to the application. To change this, see [Global state in the CRT](../global-state.md).
48
49
49
50
## Requirements
50
51
51
52
|Routine|Required header|
52
53
|-------------|---------------------|
53
-
|**_configthreadlocale**|\<locale.h>|
54
+
|**`_configthreadlocale`**|\`<locale.h>`|
54
55
55
56
## Example
56
57
@@ -163,7 +164,7 @@ The time in German locale is: 'Mittwoch, 12. Mai 2004'
0 commit comments