unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#14511: Unexpected behaviour of scm_gc+sleep/usleep in another thread
@ 2013-05-30 11:06 Panicz Maciej Godek
  2013-06-04 12:49 ` Ludovic Courtès
  0 siblings, 1 reply; 8+ messages in thread
From: Panicz Maciej Godek @ 2013-05-30 11:06 UTC (permalink / raw)
  To: 14511

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

Hi,
I've noticed that when a thread is asleep and (gc) or scm_gc() is called,
it gets awoken. It can be demonstrated with the following example:

> (call-with-new-thread
    (lambda()
      (while #t
        (display "tick!\n")
        (sleep 5)))) ;; <= this is 5 seconds!

> (gc)
tick! ;; this happens immediately after each call to gc!

This behaviour is both unexpected and undocumented, so I consider it a bug.

[-- Attachment #2: Type: text/html, Size: 696 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-05 11:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30 11:06 bug#14511: Unexpected behaviour of scm_gc+sleep/usleep in another thread Panicz Maciej Godek
2013-06-04 12:49 ` Ludovic Courtès
2013-06-04 13:11   ` Panicz Maciej Godek
2013-06-04 13:36     ` Ludovic Courtès
2013-06-04 14:38       ` Panicz Maciej Godek
2013-06-05  8:03         ` Ludovic Courtès
2013-06-05 11:12           ` Panicz Maciej Godek
2013-06-05 11:38             ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).