1995-08-09 08:06:35 -07:00
|
|
|
/***********************************************************************/
|
|
|
|
/* */
|
1996-04-30 07:53:58 -07:00
|
|
|
/* Objective Caml */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/* Xavier Leroy and Damien Doligez, INRIA Rocquencourt */
|
|
|
|
/* */
|
1996-04-30 07:53:58 -07:00
|
|
|
/* Copyright 1996 Institut National de Recherche en Informatique et */
|
1999-11-17 10:59:06 -08:00
|
|
|
/* en Automatique. All rights reserved. This file is distributed */
|
|
|
|
/* under the terms of the GNU Library General Public License. */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
#ifndef _signals_
|
|
|
|
#define _signals_
|
|
|
|
|
|
|
|
#include "misc.h"
|
1996-11-02 10:00:46 -08:00
|
|
|
#include "mlvalues.h"
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
extern value signal_handlers;
|
1997-09-02 05:55:01 -07:00
|
|
|
extern volatile int pending_signal;
|
|
|
|
extern volatile int something_to_do;
|
|
|
|
extern volatile int force_major_slice;
|
|
|
|
extern volatile int async_signal_mode;
|
|
|
|
|
|
|
|
void enter_blocking_section (void);
|
|
|
|
void leave_blocking_section (void);
|
|
|
|
void urge_major_slice (void);
|
1998-08-13 08:58:08 -07:00
|
|
|
int convert_signal_number (int);
|
1999-06-05 05:02:48 -07:00
|
|
|
void execute_signal(int signal_number, int in_signal_handler);
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1996-04-01 07:24:38 -08:00
|
|
|
extern void (*enter_blocking_section_hook)();
|
|
|
|
extern void (*leave_blocking_section_hook)();
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
#endif /* _signals_ */
|
|
|
|
|