canceling blocked threads

Hi all,

what is the best way to cancel receive blocked threads ??

–Armin

You mean in a resource manager? I implement a custom io_unblock() call which
does a msgreply with EINTR.

“Armin Steinhoff” <a-steinhoff@web.de> wrote in message
news:es1ek0$47$1@inn.qnx.com

Hi all,

what is the best way to cancel receive blocked threads ??

–Armin

Ken Schumm <kwschumm@qsolv.com> wrote:

You mean in a resource manager? I implement a custom io_unblock() call which
does a msgreply with EINTR.
^^^^^^^^

MsgError

“Armin Steinhoff” <> a-steinhoff@web.de> > wrote in message
news:es1ek0$47$> 1@inn.qnx.com> …

Hi all,

what is the best way to cancel receive blocked threads ??

–Armin

“Sean Boudreau” <seanb@qnx.com> wrote in message
news:es4627$po8$1@inn.qnx.com

Ken Schumm <> kwschumm@qsolv.com> > wrote:
You mean in a resource manager? I implement a custom io_unblock() call
which
does a msgreply with EINTR.
^^^^^^^^
MsgError

Yeah, what he said.

Ken Schumm wrote:

You mean in a resource manager?

No … I mean a simple user level thread waiting for a pulse or message.
A kernel timeout could be an option … but I’m sure there are other
ideas :slight_smile:

Thanks

Armin


I implement a custom io_unblock() call which

does a msgreply with EINTR.

“Armin Steinhoff” <> a-steinhoff@web.de> > wrote in message
news:es1ek0$47$> 1@inn.qnx.com> …
Hi all,

what is the best way to cancel receive blocked threads ??

–Armin

  1. TimerTimeout()
  2. Shoot a signal to the thread (SignalKill()) to EINTR the
    MsgReceive().
  3. Actually send a pulse to it, (put pulse in a sigevent, and associate
    it with a real timer.)

Armin Steinhoff <a-steinhoff@web.de> wrote:

Ken Schumm wrote:
You mean in a resource manager?

No … I mean a simple user level thread waiting for a pulse or message.
A kernel timeout could be an option … but I’m sure there are other
ideas > :slight_smile:

Thanks

Armin


I implement a custom io_unblock() call which
does a msgreply with EINTR.

“Armin Steinhoff” <> a-steinhoff@web.de> > wrote in message
news:es1ek0$47$> 1@inn.qnx.com> …
Hi all,

what is the best way to cancel receive blocked threads ??

–Armin

xtang@qnx.com wrote:

  1. TimerTimeout()
  2. Shoot a signal to the thread (SignalKill()) to EINTR the
    MsgReceive().

In the meantime I implemented that case :slight_smile:

Thanks so far

–Armin

  1. Actually send a pulse to it, (put pulse in a sigevent, and associate
    it with a real timer.)

Armin Steinhoff <> a-steinhoff@web.de> > wrote:
Ken Schumm wrote:
You mean in a resource manager?
No … I mean a simple user level thread waiting for a pulse or message.
A kernel timeout could be an option … but I’m sure there are other
ideas > :slight_smile:

Thanks

Armin


I implement a custom io_unblock() call which
does a msgreply with EINTR.

“Armin Steinhoff” <> a-steinhoff@web.de> > wrote in message
news:es1ek0$47$> 1@inn.qnx.com> …
Hi all,

what is the best way to cancel receive blocked threads ??

–Armin