Fix spacing, copyrights.
This commit is contained in:
parent
51cb7ca7ac
commit
94b03f2380
@ -42,7 +42,6 @@ static char **lastenviron = NULL;
|
||||
(CYGWIN_VERSION_DLL_MAKE_COMBINED (user_data->api_major, user_data->api_minor) \
|
||||
<= CYGWIN_VERSION_DLL_MALLOC_ENV)
|
||||
|
||||
|
||||
/* List of names which are converted from dos to unix
|
||||
on the way in and back again on the way out.
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
/* pthread.cc: posix pthread interface for Cygwin
|
||||
|
||||
Copyright 1998 Cygnus Solutions.
|
||||
Copyright 1998, 1999, 2000, 2001 Red Hat, Inc.
|
||||
|
||||
Written by Marco Fuykschot <marco@ddi.nl>
|
||||
Originally written by Marco Fuykschot <marco@ddi.nl>
|
||||
|
||||
This file is part of Cygwin.
|
||||
|
||||
@ -191,7 +191,8 @@ pthread_cond_signal(pthread_cond_t *cond)
|
||||
return __pthread_cond_signal (cond);
|
||||
}
|
||||
|
||||
int pthread_cond_broadcast(pthread_cond_t *cond)
|
||||
int
|
||||
pthread_cond_broadcast (pthread_cond_t *cond)
|
||||
{
|
||||
return __pthread_cond_broadcast (cond);
|
||||
}
|
||||
@ -227,7 +228,8 @@ pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
|
||||
return __pthread_condattr_getpshared (attr, pshared);
|
||||
}
|
||||
|
||||
int pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
|
||||
int
|
||||
pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
|
||||
{
|
||||
return __pthread_condattr_setpshared (attr, pshared);
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
Copyright 1998, 1999, 2000, 2001 Red Hat, Inc.
|
||||
|
||||
Written by Marco Fuykschot <marco@ddi.nl>
|
||||
Originally written by Marco Fuykschot <marco@ddi.nl>
|
||||
|
||||
This file is part of Cygwin.
|
||||
|
||||
@ -186,7 +186,6 @@ ResourceLocks::Delete ()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Thread interface
|
||||
|
||||
void
|
||||
@ -275,7 +274,6 @@ MTinterface::Init (int forked)
|
||||
#endif
|
||||
|
||||
reent_index = TlsAlloc ();
|
||||
|
||||
reents._clib = _impure_ptr;
|
||||
reents._winsup = &winsup_reent;
|
||||
|
||||
@ -492,7 +490,6 @@ MTinterface::CreateCond (pthread_cond_t * cond, const pthread_condattr_t * attr)
|
||||
false, /* start non signaled */
|
||||
NULL /* no name */);
|
||||
|
||||
|
||||
CHECKHANDLE (NULL, 1);
|
||||
|
||||
*cond = (pthread_cond_t) item->win32_obj_id;
|
||||
@ -542,7 +539,7 @@ CondItem::BroadCast ()
|
||||
return 0;
|
||||
}
|
||||
|
||||
////////////////////////// Pthreads
|
||||
/* Pthreads */
|
||||
|
||||
void *
|
||||
thread_init_wrapper (void *_arg)
|
||||
@ -576,7 +573,6 @@ thread_init_wrapper (void *_arg)
|
||||
|
||||
local_winsup._process_logmask = LOG_UPTO (LOG_DEBUG);
|
||||
|
||||
|
||||
if (!TlsSetValue (MT_INTERFACE->reent_index, &local_reent))
|
||||
system_printf ("local storage for thread couldn't be set");
|
||||
|
||||
@ -585,10 +581,8 @@ thread_init_wrapper (void *_arg)
|
||||
system_printf ("local storage for thread isn't setup correctly");
|
||||
#endif
|
||||
|
||||
|
||||
thread_printf ("started thread %p %p %p %p %p %p", _arg, &local_clib, _impure_ptr, thread, thread->function, thread->arg);
|
||||
|
||||
|
||||
// call the user's thread
|
||||
void *ret = thread->function (thread->arg);
|
||||
|
||||
@ -731,9 +725,6 @@ __pthread_continue (pthread_t * thread)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
unsigned long
|
||||
__pthread_getsequence_np (pthread_t * thread)
|
||||
{
|
||||
@ -800,7 +791,8 @@ __pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr)
|
||||
|
||||
}
|
||||
|
||||
int __pthread_cond_broadcast(pthread_cond_t *cond)
|
||||
int
|
||||
__pthread_cond_broadcast (pthread_cond_t *cond)
|
||||
{
|
||||
GETCOND("_pthread_cond_lock");
|
||||
|
||||
@ -809,7 +801,8 @@ int __pthread_cond_broadcast(pthread_cond_t *cond)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int __pthread_cond_signal(pthread_cond_t *cond)
|
||||
int
|
||||
__pthread_cond_signal (pthread_cond_t *cond)
|
||||
{
|
||||
GETCOND("_pthread_cond_lock");
|
||||
|
||||
@ -818,7 +811,8 @@ int __pthread_cond_signal(pthread_cond_t *cond)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime)
|
||||
int
|
||||
__pthread_cond_timedwait (pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime)
|
||||
{
|
||||
int rv;
|
||||
if (!abstime)
|
||||
@ -845,7 +839,8 @@ int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, const
|
||||
return rv;
|
||||
}
|
||||
|
||||
int __pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex)
|
||||
int
|
||||
__pthread_cond_wait (pthread_cond_t *cond, pthread_mutex_t *mutex)
|
||||
{
|
||||
int rv;
|
||||
SetResourceLock (LOCK_MUTEX_LIST, READ_LOCK, "_ptherad_mutex_lock");
|
||||
|
Loading…
x
Reference in New Issue
Block a user