summaryrefslogtreecommitdiff
path: root/libguile/async.c
AgeCommit message (Collapse)AuthorFilesLines
2004-09-22*** empty log message ***Marius Vollmer1-3/+3
2004-07-06* deprecated.h, boolean.h (SCM_FALSEP, SCM_NFALSEP, SCM_BOOL,Marius Vollmer1-1/+1
SCM_NEGATE_BOOL, SCM_BOOLP): Deprecated by moving into "deprecated.h". Replaced all uses with scm_is_false, scm_is_true, scm_from_bool, and scm_is_bool, respectively.
2004-01-11(scm_frame_unwind, scm_frame_unwind_handler): Renamed and changed allMarius Vollmer1-4/+4
uses. (scm_frame_rewind, scm_frame_rewind_handler): Likewise.
2004-01-07Did the follwing renamings: scm_with_blocked_asyncs ->Marius Vollmer1-6/+6
scm_frame_block_asyncs, scm_with_unblocked_asyncs -> scm_frame_unblock_asyncs. Changed all uses.
2004-01-06dynwind.h (SCM_F_WIND_EXPLICITELY, SCM_F_WIND_EXPLICITLY): It'sMarius Vollmer1-4/+4
"explicitly" not "explicitely", damn. Changed all uses.
2004-01-04(scm_with_blocked_asyncs, scm_with_unblocked_asyncs): New.Marius Vollmer1-1/+19
2003-04-05Changed license terms to the plain LGPL thru-out.Marius Vollmer1-35/+11
2003-03-25* async.c: #include <config.h> if HAVE_CONFIG_H.Rob Browning1-0/+3
2002-12-10* async.c, error.h (scm_ints_disabled): Removed.Mikael Djurfeldt1-5/+0
* gc.c (scm_gc_for_newcell), init.c (scm_init_guile_1), root.c (scm_internal_cwdr), gdbint.c (SCM_BEGIN_FOREIGN_BLOCK, SCM_END_FOREIGN_BLOCK): Don't touch scm_ints_disabled. (old_ints): Removed. * __scm.h (SCM_DEFER_INTS, SCM_ALLOW_INTS): Define as a recursive critical section. (SCM_REDEFER_INTS, SCM_ALLOW_INTS): Define as SCM_DEFER_INTS and SCM_ALLOW_INTS.
2002-11-03* __scm.h (USE_THREADS, GUILE_ISELECT): Define whenMarius Vollmer1-4/+0
SCM_DEBUG_DEPRECATED. Removed their use thru-out Guile.
2002-10-27(scm_async_click): Reset pending_asyncs, handleMarius Vollmer1-30/+46
signal_asyncs. Don't set cdr of a non-signal async to #f. (scm_i_queue_async_cell): Do not check cdr of cell for #f, queue always. Set pending_asyncs. (scm_system_async_mark_for_thread): Check that thread has not exited. (scm_unmask_signals, decrease_block): Call scm_async_click after block_asyncs becomes zero.
2002-10-20(SCM_MAKE_VALIDATE_MSG): New. Use it instead of SCM_MAKE_VALIDATE inMarius Vollmer1-1/+1
lots of places to gove better error messages. Thanks to Bill Schottstaedt!
2002-10-19Auto docstring updates, including soft port enhancement.Neil Jerram1-3/+8
2002-10-19* async.h, async.c (scm_system_async): Fixed deprecation to workDirk Herrmann1-3/+7
correctly when deprecated features are excluded.
2002-10-16(scm_system_async_mark_for_thread): Validate thread argument.Marius Vollmer1-3/+6
2002-10-11* async.c (s_scm_system_async_mark_for_thread): Only callMarius Vollmer1-0/+4
scm_i_thread_root when USE_THREADS is defined. Use scm_root otherwise. * scmsigs.c (take_signal): Only call scm_i_thread_root when USE_THREADS is defined. Use scm_root otherwise. (scm_sigaction_for_thread): Ignore THREAD argument when USE_THREADS is not defined. Also, move THREAD argument defaulting out of HAVE_SIGACTION section, which was a bug.
2002-10-09* async.h (scm_call_with_blocked_asyncs,Marius Vollmer1-12/+89
scm_call_with_unblocked_asyncs, scm_c_call_with_blocked_asyncs, scm_c_call_with_unblocked_asyncs): New prototypes. (scm_mask_signals, scm_unmask_signals): Deprecated. (scm_mask_ints): Turned into a macro. * async.c (scm_mask_ints): Removed. (scm_run_asyncs): Do not set scm_mask_ints while running an async. this should not be necessary. (scm_async_click): Test block_asyncs instead of scm_mask_ints. (scm_mask_signals, scm_unmask_signals): Deprecated. Emit deprecation warning and check for errornous use. Set block_asyncs instead of scm_mask_ints. (increase_block, decrease_block, scm_call_with_blocked_asyncs, scm_call_with_unblocked_asyncs, scm_c_call_with_blocked_asyncs, scm_c_call_with_unblocked_asyncs): New.
2002-10-05* async.c (scm_async_click): Set the cdr of a executed handlerMarius Vollmer1-5/+18
cell to SCM_BOOL_F, not SCM_EOL. (scm_i_queue_async_cell): Queue the cell at the end of the list, and only if the handler procedure is not already present. (scm_system_async_mark_for_thread): Initialize cdr of handler cell with SCM_BOOL_F. * scmsigs.c (scm_sigaction_for_thread): Likewise.
2002-10-04Removed GUILE_OLD_ASYNC_CLICK code. Reorganized so that system asnycsMarius Vollmer1-273/+92
and user asyncs are separated. Reimplemented system asyncs to work per-thread.
2002-07-202002-07-20 Han-Wen <hanwen@cs.uu.nl>Han-Wen Nienhuys1-1/+1
* *.c: add space after commas everywhere. * *.c: use SCM_VECTOR_SET everywhere, where a vector is written. Document cases where SCM_WRITABLE_VELTS() is used. * vectors.h (SCM_VELTS): prepare for write barrier, and let SCM_VELTS() return a const pointer (SCM_VECTOR_SET): add macro. * autogen.sh (mscripts): find and check version number of autoconf. Complain if 2.53 is not found.
2002-03-14Retire inclusion guard macro SCM_MAGIC_SNARFER.Thien-Thi Nguyen1-2/+0
2002-01-22* First batch of libguile changes for Elisp support.Neil Jerram1-3/+4
* Fixed a few typos. * Minor rationalization of macros relating to source breakpoints.
2001-11-25(scm_system_async_mark_from_signal_handler): New.Marius Vollmer1-0/+5
2001-07-09Remove "face-lift" comment.Thien-Thi Nguyen1-2/+0
2001-06-26 * eval.c (scm_call_0, scm_call_1, scm_call_2, scm_call_3,Keisuke Nishida1-1/+1
scm_apply_0, scm_apply_1, scm_apply_2, scm_apply_3): New functions.
2001-06-14replace "scm_*_t" with "scm_t_*".Marius Vollmer1-1/+1
2001-03-30* Replaced a lot of calls to SCM_C[AD]R with more appropriate macros.Dirk Herrmann1-10/+4
* Minor cleanups to hashtable implementation. * Minor code beautifications.
2001-03-09Remove #include <stdio.h>. Add #include <string.h>.Keisuke Nishida1-1/+0
2001-02-16(scm_async, scm_system_async, scm_async_mark, scm_system_async_mark,Martin Grabmüller1-17/+21
scm_run_asyncs, scm_noop, scm_set_tick_rate, scm_set_switch_rate, scm_unmask_signals, scm_mask_signals): Added docstrings.
2000-12-08Smob-related creanup.Keisuke Nishida1-6/+5
2000-12-06* eval.c: remove commented code, remove #ifdef CCLO conditionalsDirk Herrmann1-1/+1
* remove uses of older GC marking and cell accessing macros
2000-11-17* alist.c, arbiters.c, async.c, backtrace.c, boolean.c, chars.c,Marius Vollmer1-0/+2
continuations.c, debug-malloc.c, debug.c, dynl.c, dynwind.c, environments.c, eq.c, error.c, eval.c, evalext.c, feature.c, filesys.c, fluids.c, fports.c, gc.c, goops.c, guardians.c, hash.c, hashtab.c, hooks.c, ioext.c, iselect.c, keywords.c, lang.c, list.c, load.c, macros.c, modules.c, net_db.c, numbers.c, objects.c, objprop.c, options.c, pairs.c, ports.c, posix.c, print.c, procprop.c, procs.c, properties.c, ramap.c, random.c, read.c, regex-posix.c, root.c, scmsigs.c, script.c, simpos.c, socket.c, sort.c, srcprop.c, stackchk.c, stacks.c, stime.c, strings.c, strop.c, strorder.c, strports.c, struct.c, symbols.c, tag.c, threads.c, throw.c, unif.c, variable.c, vectors.c, version.c, vports.c, weaks.c: Makes sure the snarfer output inclusion is disabled when the snarfer is run on the file. Thanks to Lars J. Aas! * Makefile.am: Install guile-procedures.txt in version-specific directory to enable multiple installed guile versions. Suggested by Karl M. Hegbloom <karlheg@debian.org, patch by Matthias Koeppe.
2000-10-25* Some more work to get rid of SCM_LENGTHDirk Herrmann1-1/+1
* Eliminated some cell type bit fiddling * Various minor changes
2000-06-29* Removed some unused identifiers and commented code.Dirk Herrmann1-12/+0
2000-06-28* Cleaned up initialization of asyncs.Dirk Herrmann1-37/+1
* Moved handling of scm_gc_async to gc.c. * Extracted handling of scheme level after-gc-hook from gc core.
2000-06-27* Switch to standard way of smob initialization.Dirk Herrmann1-2/+4
2000-05-18* Unified some rest argument checking and handling.Dirk Herrmann1-0/+1
2000-05-15* Wrapped deprecated code between #if (SCM_DEBUG_DEPRECATED == 0) #endif.Dirk Herrmann1-0/+6
* Replace use of deprecated macros SCM_INPORTP, SCM_OUTPORTP, SCM_ICHRP.
2000-04-21* async.c (scm_sys_gc_async_thunk): Run after-gc-hook.Mikael Djurfeldt1-0/+3
Added #include "libguile/gc.h".
2000-04-21* Makefile.am (DEFS): Added. automake adds -I options to DEFS,Mikael Djurfeldt1-8/+8
and we don't want that. (INCLUDES): Removed all -I options except for the root source directory and the root build directory. * *.*: Change includes so that they always use the "prefixes" libguile/, qt/, guile-readline/, or libltdl/. (Thanks to Tim Mooney.)
2000-04-05* async.[ch]: unexpose low-level async access macros (thanks toMichael Livshin1-17/+28
Dirk Herrmann). * validate.h: move async validation macros to async.c (nobody else needs them anyway), and rename them.
2000-04-04* async.h: kill the scm_async_t struct. having a heap cellMichael Livshin1-38/+30
pretending to be a C struct is not helthy, and is not needed here anyway, as asyncs happily fit in one heap cell. * async.c: reflect the fact that asyncs are now represented by single heap cell each.
2000-03-30Fix some typing issues wrt SCM/scm_bits_t.Dirk Herrmann1-2/+2
2000-03-22Code layoutMikael Djurfeldt1-2/+2
2000-03-21*** empty log message ***Mikael Djurfeldt1-12/+11
2000-03-21OopsMikael Djurfeldt1-1/+4
2000-03-21* async.c, __scm.h: Removed lots of the old async click logic. ItMikael Djurfeldt1-8/+36
is possible to reinsert it by defining GUILE_OLD_ASYNC_CLICK in __scm.h. Let's try this out and dump the old code after the threads reorganization. (set-tick-rate, set-switch-rate): Conditionally removed.
2000-03-21Fix: Don't unpack results of SCM_INUM.Dirk Herrmann1-13/+6
2000-03-19 * *.[hc]: add Emacs magic at the end of file, to ensure GNUMichael Livshin1-0/+6
indentation style.
2000-03-18Only include root.h where it is actually needed.Dirk Herrmann1-0/+1