From: Randi Botse <nightdecoder@gmail.com>
To: Bogdan Cristea <cristeab@gmail.com>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: Co-thread for parallel processing
Date: Fri, 2 Dec 2011 17:10:52 +0700 [thread overview]
Message-ID: <CAA6iF_6eNdKuTFge_9Ddxfag14SfMP4uKEfV8Ka_hTLFGMWzwA@mail.gmail.com> (raw)
In-Reply-To: <201112021028.38892.cristeab@gmail.com>
> I would use a semaphore...
Ok, let see what I can do with that.
2. Just forget that, that might be caused by my frustation... ;)
> 2. After calling pthread_cond_signal() or pthread_cond_broadcast()
> followed by sleep()/nanosleep(),
> the condition variable looks like not signaled, (the co-thread
> routine doesn't run). What make this?
I don't understand, please provide a working example
> Bogdan
next prev parent reply other threads:[~2011-12-02 10:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-02 9:23 Co-thread for parallel processing Randi Botse
2011-12-02 9:28 ` Bogdan Cristea
2011-12-02 10:10 ` Randi Botse [this message]
2011-12-02 11:26 ` Srinivasa T N
2011-12-03 21:13 ` Hendrik Visage
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=CAA6iF_6eNdKuTFge_9Ddxfag14SfMP4uKEfV8Ka_hTLFGMWzwA@mail.gmail.com \
--to=nightdecoder@gmail.com \
--cc=cristeab@gmail.com \
--cc=linux-c-programming@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).