This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: timed wait for cyg_io_read
- From: Grant Edwards <grant dot b dot edwards at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Sun, 29 May 2016 17:20:13 +0000 (UTC)
- Subject: Re: timed wait for cyg_io_read
- Authentication-results: sourceware.org; auth=none
- References: <07FFDDED6CBCCE4E9FBD46AEC3EBFD4F02C5069C at exchange>
On 2016-05-27, Michael W. Ellis <mellis@pesa.com> wrote:
> Is there a way to do a timed wait for cyg_io_read?
FAIK, there never used to be any "built-in" way to do that. I ended
up adding timeout settings to my io drivers.
> I have a thread that is blocking on cyg_io_read and I wish to signal
> the thread to exit in an orderly manner (using an event flag). I
> know that I can make cyg_io_read non-blocking and poll cyg_io_read
> and cyg_flag_poll but this would burn a lot of cycles doing nothing.
I think there used to be a way to explicity wakeup a thread that was
blocked on something, but I don't remember the details...
--
Grant
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss