Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pthread_kill for VMS

24 views
Skip to first unread message

Jouk Jansen

unread,
Oct 1, 2001, 7:05:10 AM10/1/01
to
Hi all,

I would like to send "signals" between threads. pthread_kill seems to
a good function for this. However is is not supported on OpenVMS (not
even at 7.3 Alpha). Does anybody know a "way-around" to emulate these
signals in another way?

Jouk

Ruslan R. Laishev

unread,
Oct 1, 2001, 7:51:29 AM10/1/01
to Jouk Jansen
Hi !
You can use pthread_cancel/pthread_detach, see also pthread_create and thread
attributes (e.g. JOINABLE).

--
Cheers,
+OpenVMS [Sys|Net] HardWorker........................................+
Russia,Delta Telecom Inc, Cel: +7 (901) 971-3222
191119,St.Petersburg,Transportny per. 3 116-3222
+http://www.levitte.org/~rlaishev/ .......... SysMan rides HailStorm +

Jouk Jansen

unread,
Oct 1, 2001, 8:01:56 AM10/1/01
to Ruslan R. Laishev
Ruslan R. Laishev wrote:
>
> Hi !
> You can use pthread_cancel/pthread_detach, see also pthread_create and thread
> attributes (e.g. JOINABLE).
>
> Jouk Jansen wrote:
> >
> > Hi all,
> >
> > I would like to send "signals" between threads. pthread_kill seems to
> > a good function for this. However is is not supported on OpenVMS (not
> > even at 7.3 Alpha). Does anybody know a "way-around" to emulate these
> > signals in another way?
> >
> > Jouk

Since I do not want to end the thread by this action, you'll need
the TRY/CATCH handlers. But then I'm out of luck because they will
not work with C++.

Jouk

Dave Weatherall

unread,
Oct 2, 2001, 1:52:53 AM10/2/01
to
On Mon, 1 Oct 2001 12:01:56, Jouk Jansen <jo...@hrem.stm.tudelft.nl>
wrote:

What's wrong with signal_condition (cma$_signal_cond - I do my threads
in Fortran and can never remember the Pthread interface names) or are
you talking about those funny Unix 'signals' which I haven't got a
handle on (yet).

--
Cheers - Dave.

Mark Williams

unread,
Oct 5, 2001, 11:22:25 AM10/5/01
to

If you want to send signals between threads then I suggest you
consider using condition variables (see pthread_cond_signal et all).

Mark Williams

Mark Williams

0 new messages