Re: temporary disable thread switching using pthreads
- From: davids@xxxxxxxxxxxxx
- Date: 21 May 2006 13:27:52 -0700
I am looking for a possibility to disable the thread switching for the
current process temporarily. This is a very simple way to build mutual
exclusive sections, without the need to protect the access to common
objects by mutexes everywhere in the code.
Pthreads do not and cannot work that way. Use locks to protect the
data. How would disabling thread switching help if other threads are
currently running already?
DS
.
- References:
- temporary disable thread switching using pthreads
- From: Marcel Müller
- temporary disable thread switching using pthreads
- Prev by Date: Re: temporary disable thread switching using pthreads
- Next by Date: Re: accessing each pthread's context
- Previous by thread: Re: temporary disable thread switching using pthreads
- Next by thread: Re: temporary disable thread switching using pthreads
- Index(es):
Relevant Pages
|