[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] readline blocks threads
From: |
Jim Ursetto |
Subject: |
Re: [Chicken-users] readline blocks threads |
Date: |
Tue, 4 Mar 2008 15:45:33 -0600 |
Shawn:
Did you try using rlwrap? It works fine here.
$ rlwrap csi
#;1> (use srfi-18)
#;2> (thread-start! (lambda () (let loop () (printf "loop~%") (thread-sleep! 1)
(loop))))
#<thread: thread0>
#;3> loop
loop
loop
loop
On 3/4/08, Shawn Rutledge <address@hidden> wrote:
> If you do
>
> (use readline)
> (current-input-port (make-gnu-readline-port "csi> "))
> (thread-start! (lambda () (let loop () (printf "loop~%") (loop))))
>
> the thread doesn't run in the background anymore, presumably because
> readline uses blocking I/O.
>
>
> _______________________________________________
> Chicken-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/chicken-users
>
Re: [Chicken-users] readline blocks threads,
Jim Ursetto <=
- Re: [Chicken-users] readline blocks threads, Shawn Rutledge, 2008/03/04
- Re: [Chicken-users] readline blocks threads, Elf, 2008/03/04
- Re: [Chicken-users] readline blocks threads, Shawn Rutledge, 2008/03/04
- Re: [Chicken-users] readline blocks threads, Graham Fawcett, 2008/03/04
- Re: [Chicken-users] readline blocks threads, Shawn Rutledge, 2008/03/06
- Re: [Chicken-users] readline blocks threads, Elf, 2008/03/06
- Re: [Chicken-users] readline blocks threads, Shawn Rutledge, 2008/03/06
Re: [Chicken-users] readline blocks threads, felix winkelmann, 2008/03/05