From: andi <andi@fischlustig.de>
To: Randolph Chung <randolph@tausq.org>
Cc: parisc-linux@parisc-linux.org
Subject: Re: [parisc-linux] Problem with threads..
Date: 30 Dec 2001 22:55:26 +0100 [thread overview]
Message-ID: <1009749327.28491.0.camel@cube> (raw)
In-Reply-To: <20011230184222.GC2179@tausq.org>
> Just to clarify...
>
> hppa is the only platform supported by linuxthreads right now where we
> initialize the mutex variable to 1 so that we can do locking using ldcw. On
> other platforms, locks are initialized to 0 and locking is done using things
> like test-and-set.
>
> In general, you always need to call pthread_mutex_init for mutexes to
> work. In the case of pan, the mutex variable is declared static, so it
> is automatically initialized to 0.
does that mean using the PTHREAD_MUTEX_INITIALIZER as defined in
phread.h (which DirectFB does) does not work on parisc, and we _have_ to
call pthreas_mutex_init()? Why does PTHREAD_MUTEX_INITIALIZER exist
then?
#define PTHREAD_MUTEX_INITIALIZER \
{0, 0, 0, PTHREAD_MUTEX_TIMED_NP, __LOCK_INITIALIZER}
andi
next prev parent reply other threads:[~2001-12-30 21:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-29 9:24 [parisc-linux] Problem with threads Christian Suder
2001-12-29 12:42 ` andi
2001-12-30 6:44 ` Randolph Chung
2001-12-30 7:58 ` Christian Suder
2001-12-30 8:49 ` Randolph Chung
2001-12-30 18:42 ` Randolph Chung
2001-12-30 21:55 ` andi [this message]
2001-12-31 5:07 ` Randolph Chung
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1009749327.28491.0.camel@cube \
--to=andi@fischlustig.de \
--cc=parisc-linux@parisc-linux.org \
--cc=randolph@tausq.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox