public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
* POSIX signals
@ 2005-03-13  7:38 Robin Rowe
  2005-03-13 13:29 ` Ross Johnson
  0 siblings, 1 reply; 3+ messages in thread
From: Robin Rowe @ 2005-03-13  7:38 UTC (permalink / raw)
  To: pthreads-win32

Hi. I'm porting JamVM Java to Windows. Pthreads is a great help. Also need 
POSIX signals. Is that available?

Here are the functions I need.

int sched_yield();
int sigemptyset(sigset_t *set);
int sigfillset(sigset_t *set);
int sigaddset(sigset_t *set, int signum);
int sigdelset(sigset_t *set, int signum);
int sigismember(const sigset_t *set, int signum);
int sigsuspend(const sigset_t *sigmask);
int sigwait(const sigset_t *set, int *sig);
int sigaction(int sig, const struct sigaction* act,struct sigaction* oact);
int sigprocmask(int how, const sigset_t *set, sigset_t *oset);
int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);

Ideas?

Thanks!

Robin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: POSIX signals
  2005-03-13  7:38 POSIX signals Robin Rowe
@ 2005-03-13 13:29 ` Ross Johnson
  2005-03-21  4:40   ` Robin Rowe
  0 siblings, 1 reply; 3+ messages in thread
From: Ross Johnson @ 2005-03-13 13:29 UTC (permalink / raw)
  To: Robin Rowe; +Cc: Pthreads-Win32 list

Hi,

Not directly as you've probably noticed. Only sched_yield() and
pthread_sigmask, but nothing actually uses the mask.

A few years back there was a version of UWIN that had pthreads-win32
integrated with it, but I don't think that's the case anymore. I could
be wrong though. Last time I checked they didn't appear to have threads
in the feature list.

The Cygwin dll provides signals and threads and is GPL. Is that of any
use to you?

Regards.
Ross

On Sat, 2005-03-12 at 23:38 -0800, Robin Rowe wrote:
> Hi. I'm porting JamVM Java to Windows. Pthreads is a great help. Also need 
> POSIX signals. Is that available?
> 
> Here are the functions I need.
> 
> int sched_yield();
> int sigemptyset(sigset_t *set);
> int sigfillset(sigset_t *set);
> int sigaddset(sigset_t *set, int signum);
> int sigdelset(sigset_t *set, int signum);
> int sigismember(const sigset_t *set, int signum);
> int sigsuspend(const sigset_t *sigmask);
> int sigwait(const sigset_t *set, int *sig);
> int sigaction(int sig, const struct sigaction* act,struct sigaction* oact);
> int sigprocmask(int how, const sigset_t *set, sigset_t *oset);
> int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);
> 
> Ideas?
> 
> Thanks!
> 
> Robin
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: POSIX signals
  2005-03-13 13:29 ` Ross Johnson
@ 2005-03-21  4:40   ` Robin Rowe
  0 siblings, 0 replies; 3+ messages in thread
From: Robin Rowe @ 2005-03-21  4:40 UTC (permalink / raw)
  To: Pthreads-Win32 list

Ross,

It's too bad pthreads-win doesn't support POSIX signals. It's only a dozen 
functions. Will try to implement when I can find some time.

Robin


>On Sat, 2005-03-12 at 23:38 -0800, Robin Rowe wrote:
>> Hi. I'm porting JamVM Java to Windows. Pthreads is a great help. Also 
>> need
>> POSIX signals. Is that available?
>>
>> Here are the functions I need.
>>
>> int sched_yield();
>> int sigemptyset(sigset_t *set);
>> int sigfillset(sigset_t *set);
>> int sigaddset(sigset_t *set, int signum);
>> int sigdelset(sigset_t *set, int signum);
>> int sigismember(const sigset_t *set, int signum);
>> int sigsuspend(const sigset_t *sigmask);
>> int sigwait(const sigset_t *set, int *sig);
>> int sigaction(int sig, const struct sigaction* act,struct sigaction* 
>> oact);
>> int sigprocmask(int how, const sigset_t *set, sigset_t *oset);
>> int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-21  4:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-13  7:38 POSIX signals Robin Rowe
2005-03-13 13:29 ` Ross Johnson
2005-03-21  4:40   ` Robin Rowe

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 read-only IMAP folder(s) and NNTP newsgroup(s).