summaryrefslogtreecommitdiff
path: root/ghc/rts/Signals.h
blob: 0d8a2221380a765fc510579aa20c616143e4a7ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* -----------------------------------------------------------------------------
 * $Id: Signals.h,v 1.3 1999/02/05 16:02:55 simonm Exp $
 *
 * (c) The GHC Team, 1998-1999
 *
 * Signal processing / handling.
 *
 * ---------------------------------------------------------------------------*/

#ifndef PAR

extern StgPtr pending_handler_buf[];
extern StgPtr *next_pending_handler;

#define signals_pending() (next_pending_handler != pending_handler_buf)

extern void initUserSignals(void);
extern void blockUserSignals(void);
extern void unblockUserSignals(void);

/* sig_install declared in PrimOps.h */

extern void start_signal_handlers(void);

#else

#define signals_pending() (rtsFalse)

#endif /* PAR */