Commit Graph

38 Commits (51f708cda4200af6987091528435f575d9d8164c)

Author SHA1 Message Date
John Benediktsson 7d8d6cdd51 core-foundation.run-loop: remove reset on every iteration. 2012-08-01 16:59:33 -07:00
John Benediktsson caf4e677c7 core-foundation.run-loop: use fewer durations. 2012-08-01 11:53:33 -07:00
John Benediktsson ebac6a5dbf core-foundation.run-loop: this is still needed, for now. 2012-08-01 11:18:47 -07:00
John Benediktsson 3e6e6458e5 core-foundation.run-loop: do less work, speeds up yield by 50%. 2012-08-01 10:57:58 -07:00
John Benediktsson 3d1155130c core-foundation.timers: allow interval to be specified in the constructor. 2011-10-19 15:30:55 -07:00
Slava Pestov cbbdd712fc core-foundation.run-loop bug fix for Doug's bug fix 2011-04-16 19:11:43 -07:00
Doug Coleman a744e3a370 Bugfix: Only reset-timer on mac if sleep-time returns an integer. If it returns f, don't divide by 1000 and error. 2011-04-15 00:11:15 -05:00
Slava Pestov c36d73e242 Change do-callback to register the current thread with the callback, instead of busy waiting for the current callback to become the right one before returning. Fixes 100% CPU usage issue with system-alert. Thanks to Blei and ex-rzr for doing preliminary analysis of the issue 2011-04-12 21:48:54 -04:00
Doug Coleman 0edadff45f remove system-micros word from factor src tree 2010-06-22 01:49:11 -05:00
Joe Groff 65c3259761 "cdecl" -> cdecl 2010-03-31 19:20:35 -07:00
Slava Pestov f0a9912ae9 core-foundation.run-loop: remove unnecessary yields. This fixes a thread starvation issue with game.input 2010-03-15 19:25:57 +13:00
Slava Pestov e3ddafbdec core-foundation.run-loop: clean up and speed up some code to fix starvation issue exposed by game.loop (reported by Joe Groff) 2010-03-01 12:22:18 +13:00
Slava Pestov 570e332f84 core-foundation.run-loop: cleanup 2010-02-24 21:18:29 +13:00
Joe Groff 2aa1a3dbd7 ui.backend.cocoa: invalidate run loop timers before raising an NSAlert and add them back when runModal returns to avoid run loop callbacks reentering Factor 2010-02-23 23:52:03 -08:00
Slava Pestov 95bfc8a240 vocabs.metadata: replace unportable tag with a platforms.txt file for more fine-grained control. Rename unportable tag to untested for remaining cases 2010-02-20 13:30:49 +13:00
Slava Pestov 3d585fa858 Move nano-count>timestamp word to core-foundation.run-loop since its pretty specialized 2009-11-20 00:12:16 -06:00
Doug Coleman 09e9293866 use nanoseconds in the core-foundation run-loop 2009-11-19 19:22:36 -06:00
Doug Coleman dc1eefbcc9 update run-loop multiplexer 2009-11-19 14:18:27 -06:00
Joe Groff c3b8847936 update a bunch of alien-callbacks and alien-indirects to use c-type words 2009-10-21 21:10:11 -05:00
Joe Groff 5054c954be add USING:s and rearrange definitions so macosx can compile without parsing c-type strings 2009-09-26 23:14:57 -05:00
Joe Groff 6ce3c1d62c CFSTRING: syntax for defining CF/Cocoa string constants. update core-foundation.run-loop to use CFSTRING: 2009-09-12 19:43:23 -05:00
Doug Coleman 3f3d57032b Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Slava Pestov 91d0c4ed1f Fix conflict 2009-02-22 20:02:13 -06:00
Doug Coleman 990513db60 use CONSTANT: in basis 2009-02-22 19:13:08 -06:00
Slava Pestov be40bd33ee New initialize-alien word 2009-02-20 20:51:13 -06:00
Slava Pestov 83f03c89b6 Fix bogus indentation 2008-12-18 18:09:22 -06:00
Slava Pestov 441a9f7c09 Move time-related words to core-foundation.time to remove number tower dependency from core-foundation; remove no longer used words from cocoa.application 2008-12-13 04:57:37 -06:00
Slava Pestov 5ecffec1b9 Clean up run loop I/O multiplexer and make most of it independent of the I/O system; the UI will use it too 2008-12-12 23:57:16 -06:00
Slava Pestov 36c36a7f83 Update code for core-foundation split, add core-foundation.timers 2008-12-12 01:11:37 -06:00
Slava Pestov 46a1089fd8 Split up core-foundation vocabulary since it was getting out of hand 2008-12-12 00:33:05 -06:00
Slava Pestov e9d80dcb63 Move Unix I/O multiplexers to io.unix.multiplexers, new run loop-based multiplexer integrates a kqueue with a CFRunLoop on Mac OS X 2008-12-11 22:48:19 -06:00
Slava Pestov 6edb771d05 Re-arrange some code so that core-foundation.run-loop no longer depends on calendar 2008-12-08 16:01:11 -06:00
Slava Pestov d84d267948 Add some CFFileDescriptor-related functions 2008-12-06 17:35:04 -06:00
Slava Pestov 8819f23312 Replace millis primitive with micros primitive
Add millis as a library word
sleep now takes either a duration or a microsecond count; code using durations doens't need to be updated, code using millisecond counts updated to use durations for the most part
2008-11-19 01:50:05 -06:00
Slava Pestov 7c05a777ba Add unportable tag and other meta-data to core-foundation subvocabs 2008-10-07 01:27:18 -05:00
Slava Pestov 3d790d8ac8 Memory ricing to make deploy tests pass on Mac OS X/PowerPC 2008-09-19 00:26:27 -05:00
Slava Pestov 6408b01e9d Add 'unportable' tag in place of hard-coded list of 'dangerous' vocabs in load-everything 2008-07-29 16:47:52 -05:00
Slava Pestov d66f887736 Create basis vocab root 2008-07-28 22:03:13 -05:00