Commit | Line | Data |
---|---|---|
0f2d19dd JB |
1 | /* classes: h_files */ |
2 | ||
82893676 MG |
3 | #ifndef SCM_ASYNC_H |
4 | #define SCM_ASYNC_H | |
0527e687 | 5 | |
61c95a49 | 6 | /* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002 Free Software Foundation, Inc. |
843e4e9d | 7 | * |
73be1d9e MV |
8 | * This library is free software; you can redistribute it and/or |
9 | * modify it under the terms of the GNU Lesser General Public | |
10 | * License as published by the Free Software Foundation; either | |
11 | * version 2.1 of the License, or (at your option) any later version. | |
843e4e9d | 12 | * |
73be1d9e | 13 | * This library is distributed in the hope that it will be useful, |
0f2d19dd | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
73be1d9e MV |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | * Lesser General Public License for more details. | |
843e4e9d | 17 | * |
73be1d9e MV |
18 | * You should have received a copy of the GNU Lesser General Public |
19 | * License along with this library; if not, write to the Free Software | |
20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 | */ | |
d3a6bc94 | 22 | |
0f2d19dd JB |
23 | \f |
24 | ||
b4309c3c | 25 | #include "libguile/__scm.h" |
5b900ecf | 26 | #include "libguile/root.h" |
0f2d19dd | 27 | |
0f2d19dd JB |
28 | \f |
29 | ||
e292f7aa | 30 | #define scm_mask_ints (scm_root->block_asyncs != 0) |
939794ce | 31 | |
0f2d19dd | 32 | \f |
0f2d19dd | 33 | |
e4e93373 MV |
34 | SCM_API void scm_async_click (void); |
35 | SCM_API void scm_switch (void); | |
36 | SCM_API SCM scm_async (SCM thunk); | |
e4e93373 MV |
37 | SCM_API SCM scm_async_mark (SCM a); |
38 | SCM_API SCM scm_system_async_mark (SCM a); | |
61c95a49 | 39 | SCM_API SCM scm_system_async_mark_for_thread (SCM a, SCM thread); |
5b900ecf | 40 | SCM_API void scm_i_queue_async_cell (SCM cell, scm_root_state *); |
e4e93373 MV |
41 | SCM_API SCM scm_run_asyncs (SCM list_of_a); |
42 | SCM_API SCM scm_noop (SCM args); | |
e292f7aa MV |
43 | SCM_API SCM scm_call_with_blocked_asyncs (SCM proc); |
44 | SCM_API SCM scm_call_with_unblocked_asyncs (SCM proc); | |
45 | void *scm_c_call_with_blocked_asyncs (void *(*p) (void *d), void *d); | |
46 | void *scm_c_call_with_unblocked_asyncs (void *(*p) (void *d), void *d); | |
47 | SCM_API void scm_init_async (void); | |
48 | ||
e71a8bf2 | 49 | #if (SCM_ENABLE_DEPRECATED == 1) |
e292f7aa | 50 | |
100ae50d | 51 | SCM_API SCM scm_system_async (SCM thunk); |
e4e93373 MV |
52 | SCM_API SCM scm_unmask_signals (void); |
53 | SCM_API SCM scm_mask_signals (void); | |
e292f7aa MV |
54 | |
55 | #endif | |
0f2d19dd | 56 | |
82893676 | 57 | #endif /* SCM_ASYNC_H */ |
89e00824 ML |
58 | |
59 | /* | |
60 | Local Variables: | |
61 | c-file-style: "gnu" | |
62 | End: | |
63 | */ |