On Fri, 2013-05-31 at 14:24 +0800, Xin Wang wrote:
>
>
> Thank you for pointing out this.
>
>
> After some more search, I found that pthread has function pthread_kill
> [1], which can be used to send signal to specific thread.
>
>
> No sure if it can be used to implement similar behaviour.
>
2013/5/31 Nala Ginrut
> On Fri, 2013-05-31 at 07:40 +0800, Xin Wang wrote:
> > In Racket, break-thread is used to send an break exception to a
> thread[1].
> >
> > E. g.
> >
> > (let ((th (thread (lambda ()
> > (dynamic-wind
> > (lambda () #t)
> > (lambda (
On Fri, 2013-05-31 at 07:40 +0800, Xin Wang wrote:
> In Racket, break-thread is used to send an break exception to a thread[1].
>
> E. g.
>
> (let ((th (thread (lambda ()
> (dynamic-wind
> (lambda () #t)
> (lambda () (/ 1 0))
> (lambda () (sle
Thank you guys, I got it through.
Best,
Yijiang
2013/5/29 Mike Gran :
>>Hi guys,
>
>
>>I'm using a very simple smob which only carries a pointer in the
>>immediate word. It works fine, but what worries me is that the free
>>function seems never called. Am I doing anything wrong? What's the
>>
In Racket, break-thread is used to send an break exception to a thread[1].
E. g.
(let ((th (thread (lambda ()
(dynamic-wind
(lambda () #t)
(lambda () (/ 1 0))
(lambda () (sleep 5) (display "out-guard\n")))
(sleep 1)
(break-thread th))
Mike Gran skribis:
> So, it is probably not really a Guile bug, but, rather, that calling
> scm_gc from within atexit() is a bad idea.
Oh, OK. In general, I wouldn’t make any strong assumption as to
when/whether a SMOB free function will be called.
Ludo’.
David Thompson wrote:
> I'm interested to see how you implement your entity-component system. You
> seem to have a better idea of how to do it than I do.
Ouoh, we will see. For the moment, I only talk a lot, smoke everywhere :-)
--
Javier Sancho Fernández - http://www.jsancho.org/
Associate Memb
On 05/30/2013 06:07 AM, Javier Sancho wrote:
In my view, playing with entities gives two ways for doing things in a
game. Game designers work with "objects" that have components that
have properties, i.e., it's possible to create a ship with a position
and a velocity. And game programmers work
David Thompson wrote:
> Maybe I have an unpopular opinion here, but I've done some reading and
> experimenting with Entity systems and I remain unconvinced of their
> usefulness.
In my view, playing with entities gives two ways for doing things in a
game. Game designers work with "objects" that ha
> Mike Gran skribis:
>> 3. Some versions of Guile have a bug where the last smob defined
>> in your program is never freed, even if you've cleared out the
>> pointers and called scm_gc.
> What is this? I’d be happy to read more details. :-)
To be more specific, if you want to make sure the G
10 matches
Mail list logo