Change in name of the static initializer define.

This commit is contained in:
John Birrell 1998-04-04 11:03:07 +00:00
parent edb4b26f50
commit 5a2f1fed77
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35026
3 changed files with 7 additions and 7 deletions

View file

@ -49,7 +49,7 @@ static char sccsid[] = "@(#)ttyname.c 8.2 (Berkeley) 1/27/94";
#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
static struct pthread_mutex _ttyname_lockd = PTHREAD_MUTEX_INITIALIZER;
static struct pthread_mutex _ttyname_lockd = PTHREAD_MUTEX_STATIC_INITIALIZER;
static pthread_mutex_t ttyname_lock = &_ttyname_lockd;
static pthread_key_t ttyname_key;
static int ttyname_init = 0;

View file

@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
* $Id: malloc.c,v 1.34 1997/12/31 03:15:06 alex Exp $
* $Id: malloc.c,v 1.35 1998/03/09 07:00:38 jb Exp $
*
*/
@ -56,7 +56,7 @@
# define THREAD_STATUS int thread_lock_status;
# define THREAD_LOCK() _thread_kern_sig_block(&thread_lock_status);
# define THREAD_UNLOCK() _thread_kern_sig_unblock(thread_lock_status);
static struct pthread_mutex _malloc_lock = PTHREAD_MUTEX_INITIALIZER;
static struct pthread_mutex _malloc_lock = PTHREAD_MUTEX_STATIC_INITIALIZER;
static pthread_mutex_t malloc_lock = &_malloc_lock;
# endif
#endif /* __FreeBSD__ */

View file

@ -171,8 +171,8 @@ static char lcl_TZname[TZ_STRLEN_MAX + 1];
static int lcl_is_set;
static int gmt_is_set;
#ifdef _THREAD_SAFE
static struct pthread_mutex _lcl_mutexd = PTHREAD_MUTEX_INITIALIZER;
static struct pthread_mutex _gmt_mutexd = PTHREAD_MUTEX_INITIALIZER;
static struct pthread_mutex _lcl_mutexd = PTHREAD_MUTEX_STATIC_INITIALIZER;
static struct pthread_mutex _gmt_mutexd = PTHREAD_MUTEX_STATIC_INITIALIZER;
static pthread_mutex_t lcl_mutex = &_lcl_mutexd;
static pthread_mutex_t gmt_mutex = &_gmt_mutexd;
#endif
@ -1096,7 +1096,7 @@ localtime(timep)
const time_t * const timep;
{
#ifdef _THREAD_SAFE
static struct pthread_mutex _localtime_mutex = PTHREAD_MUTEX_INITIALIZER;
static struct pthread_mutex _localtime_mutex = PTHREAD_MUTEX_STATIC_INITIALIZER;
static pthread_mutex_t localtime_mutex = &_localtime_mutex;
static pthread_key_t localtime_key = -1;
struct tm *p_tm;
@ -1178,7 +1178,7 @@ gmtime(timep)
const time_t * const timep;
{
#ifdef _THREAD_SAFE
static struct pthread_mutex _gmtime_mutex = PTHREAD_MUTEX_INITIALIZER;
static struct pthread_mutex _gmtime_mutex = PTHREAD_MUTEX_STATIC_INITIALIZER;
static pthread_mutex_t gmtime_mutex = &_gmtime_mutex;
static pthread_key_t gmtime_key = -1;
struct tm *p_tm;