1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00
Commit graph

15 commits

Author SHA1 Message Date
Jim Blandy
7f0f3eaa5f * iselect.c, threads.c: Doc fixes. 1998-10-03 13:33:24 +00:00
Jim Blandy
4d3bacdd7d Getting rid of more warnings...
* iselect.c: Test for MISSING_BZERO_DECL, not DECLARE_BZERO; see
today's change to ../configure.in.
* scmsigs.c: Test for MISSING_USLEEP_DECL, not DECLARE_USLEEP.
* scmconfig.h.in: Regenertaded.de.,.__
* stime.c (strptime): Declare this, #ifdef MISSING_STRPTIME_DECL.
(scm_localtime, scm_mktime): Use a const char * to manipulate the
time zone name.
1998-10-03 08:00:05 +00:00
Mikael Djurfeldt
95f44da944 * iselect.c: Use LONG_MAX instead of ULONG_MAX for increased
portability.
(finalize_fd_sets): Added empty statement after last case label.
(Thanks to Nicolas Neuss.)
1998-07-12 13:23:50 +00:00
Mikael Djurfeldt
b8ff5fe924 * iselect.c: Declare bzero if not defined by OS. 1998-04-20 00:39:31 +00:00
Mikael Djurfeldt
d90ca38d06 * iselect.h, iselect.c, coop.c, coop-threads.c, coop-threads.h,
coop-defs.h, throw.c, backtrace.c: Added new copyright year 1998.
1998-02-06 18:55:29 +00:00
Mikael Djurfeldt
c69dfa6575 * coop.c, iselect.c: Since thread switches are now performed with
interrupts masked, we can't use the old mechanism of delivering
signals immediately when they arrive.  Signals must instead be
delivered when the asyncs run *after* the end of the critical
section in scm_internal_select.  But this also means after context
switch so that the signal will be delivered to a different thread.
To avoid this, I have changed the protocol of
coop_wait_for_runnable_thread and friends so that they are allowed
to return the original thread.  So, if a signal arrives during
scm_internal_select, we won't any longer be forced do a context
switch, but can remain in the same thread and deliver the signal
to it.

* iselect.c: Small fixes.
1998-01-30 21:08:26 +00:00
Mikael Djurfeldt
3237b129f7 * iselect.c: Small fixes. 1998-01-26 01:42:43 +00:00
Mikael Djurfeldt
a48b6916e2 * iselect.c: Now several threads can wait on the same file
descriptor.  The behaviour is compatible with OS select: All
threads waiting for the fd return with the same status.
1998-01-24 01:50:43 +00:00
Mikael Djurfeldt
cafc12ffdd * filesys.c (set_element): Return file descriptor.
(fill_select_type): Return the highest file descriptor.
(scm_select): Tell select about the highest file descriptor.  On
some systems the SELECT_SET_SIZE can be as much as 128 bytes.
Therefore the extra overhead for calculating the maximum fd seems
to be more than compensated.  Is this correct?  In any case,
scm_internal_select will be much faster with this info.
(scm_select, fill_select_type, set_element): Don't accept any kind
of object in the file descriptor list or vector.
1997-12-08 18:15:44 +00:00
Mikael Djurfeldt
c44bfbc946 * coop-defs.h (struct coop_t): Renamed errno --> _errno to prevent
errno macro expansion of this field name.  (errno is a C
preprocessor macro on some systems.)
1997-11-30 10:36:13 +00:00
Tim Pierce
756fa4f89b Doc fix. 1997-11-30 02:35:18 +00:00
Tim Pierce
e085f7a634 * iselect.c: #ifdef USE_THREADS around thread-related includes.
* dynl-dl.c (sysdep_dynl_func): Check both USCORE and
	DLSYM_ADDS_USCORE to decide whether to add an underscore.
1997-11-28 22:58:10 +00:00
Mikael Djurfeldt
c718cb0702 * iselect.c (coop_next_runnable_thread,
coop_wait_for_runnable_thread): Disable interrupts so that no
async is executed before a potential error_revive.
(scm_internal_select): Disable interrupts during the parts of the
code which manipulate the sleep queue and the file descriptors.
1997-11-28 01:11:12 +00:00
Mikael Djurfeldt
81e81a5cb7 * iselect.c (coop_next_runnable_thread,
coop_wait_for_runnable_thread): Disable interrupts so that no
async is executed before a potential error_revive.
1997-11-28 00:50:58 +00:00
Mikael Djurfeldt
3666451eb0 * iselect.h, iselect.c: New files. Implements
scm_internal_select.  (See NEWS.)
1997-11-27 18:06:33 +00:00