30 |
* catch is reserved word in c++. |
* catch is reserved word in c++. |
31 |
* |
* |
32 |
* $Log$ |
* $Log$ |
33 |
|
* Revision 1.16 2002/08/30 00:28:00 roland |
34 |
|
* 2002-08-26 Roland McGrath <roland@frob.com> |
35 |
|
* |
36 |
|
* * cthreads.c (cthread_body) [HAVE_USELOCALE]: Call uselocale to |
37 |
|
* initialize the thread to the global locale. |
38 |
|
* |
39 |
* Revision 1.15 2002/07/31 02:35:14 marcus |
* Revision 1.15 2002/07/31 02:35:14 marcus |
40 |
* Add comment to last change, for the benefit of the next merge :) |
* Add comment to last change, for the benefit of the next merge :) |
41 |
* |
* |
157 |
#include <mach/mig_support.h> |
#include <mach/mig_support.h> |
158 |
#include "cthread_internals.h" |
#include "cthread_internals.h" |
159 |
|
|
160 |
|
#ifdef HAVE_USELOCALE |
161 |
|
# include <locale.h> |
162 |
|
#endif |
163 |
|
|
164 |
/* |
/* |
165 |
* Thread status bits. |
* Thread status bits. |
166 |
*/ |
*/ |
298 |
/* |
/* |
299 |
* Execute the fork request. |
* Execute the fork request. |
300 |
*/ |
*/ |
301 |
|
#ifdef HAVE_USELOCALE |
302 |
|
/* A fresh thread needs to be bound to the |
303 |
|
global locale. */ |
304 |
|
uselocale (LC_GLOBAL_LOCALE); |
305 |
|
#endif |
306 |
t->result = (*(t->func))(t->arg); |
t->result = (*(t->func))(t->arg); |
307 |
} |
} |
308 |
/* |
/* |