bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cthreads to Pthreads code.


From: Vicente Hernando Ara
Subject: Cthreads to Pthreads code.
Date: 24 Oct 2002 04:19:48 +0200

Hi all!

I am changing the Hurd code from cthreads to pthreads.

There will be some patches at http://es.gnu.org/~zenton/Pthread 
(there are few now ;)

I wanna ask for help on the following issues:

 *  In pfinet code appear __mutex_lock and __mutex_unlock functions,
instead mutex_lock and so. 
This functions are defined in glibc. Should I change pfinet code to
pthread_mutex_lock and pthread_mutex_unlock anyway?


 *  hurd_condition_wait, this function:
/* Just like condition_wait, but cancellable.  Returns true if
cancelled.  */
Is this behavior similar to pthread_cond_wait?
Is it best to change hurd_condition_wait internals to posix functions?

 * This last is an error I get in exec.c file.
static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
This trigger an error when compiling:
   exec.c:1382: initializer element is not constant

however:
    pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
compiles ok. Why is that?


Thanks,
Vicente. (aka: zenton in #hurd)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]