/[hurd]/hurd/libthreads/cthreads.c
ViewVC logotype

Diff of /hurd/libthreads/cthreads.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by marcus, Wed Jul 31 02:35:14 2002 UTC revision 1.16 by roland, Fri Aug 30 00:28:00 2002 UTC
# Line 30  Line 30 
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   *   *
# Line 151  Line 157 
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   */   */
# Line 288  cthread_body(cproc_t self) Line 298  cthread_body(cproc_t self)
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                          /*                          /*

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26