core-foundation.run-loop: cleanup
parent
2a3bf53af7
commit
570e332f84
|
@ -1,4 +1,4 @@
|
||||||
! Copyright (C) 2008 Slava Pestov
|
! Copyright (C) 2008, 2010 Slava Pestov
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors alien alien.c-types alien.syntax kernel math
|
USING: accessors alien alien.c-types alien.syntax kernel math
|
||||||
namespaces sequences destructors combinators threads heaps
|
namespaces sequences destructors combinators threads heaps
|
||||||
|
@ -92,7 +92,10 @@ TUPLE: run-loop fds sources timers ;
|
||||||
] bi ;
|
] bi ;
|
||||||
|
|
||||||
: invalidate-run-loop-timers ( -- )
|
: invalidate-run-loop-timers ( -- )
|
||||||
run-loop [ [ [ CFRunLoopTimerInvalidate ] [ CFRelease ] bi ] each V{ } ] change-timers drop ;
|
run-loop [
|
||||||
|
[ [ CFRunLoopTimerInvalidate ] [ CFRelease ] bi ] each
|
||||||
|
V{ } clone
|
||||||
|
] change-timers drop ;
|
||||||
|
|
||||||
<PRIVATE
|
<PRIVATE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue