Doug Coleman
616ad9a4a7
- Remove the alarms stop variable, and instead for a stop condition, check against the thread object being replaced.
...
- Interrupt the thread sleep when stopped, but only if the quotation is not currently running
2010-05-23 22:25:17 -05:00
Doug Coleman
e83777ff06
Merge branch 'master' of git://factorcode.org/git/factor
2010-05-23 22:19:48 -05:00
Slava Pestov
df7fef25ce
alarms: new test case for interrupt race
2010-05-23 23:16:41 -04:00
Slava Pestov
fc234b89dd
cpu.x86: fix callbacks receiving stack parameters on Win64
2010-05-23 23:08:07 -04:00
Doug Coleman
4a31af7ea4
Merge branch 'master' of git://factorcode.org/git/factor
2010-05-23 21:34:37 -05:00
Slava Pestov
fa53b4ab2a
opengl.gl.unix renamed to opengl.gl.x11
2010-05-23 22:25:17 -04:00
Slava Pestov
a3e5e64eab
ui.backend.x11: fix load error
2010-05-23 22:08:24 -04:00
Doug Coleman
6edffb4482
Remove typo slot, fix scheduling formula, record initial iteration nano-count
2010-05-23 18:44:04 -05:00
Slava Pestov
0d529a09f1
alarms: add unit test for race condition
2010-05-23 18:38:37 -04:00
Slava Pestov
f04ae609c8
Fixes for out parameter changes
2010-05-23 03:27:40 -05:00
Slava Pestov
5d9993d46f
Updating code to use with-out-parameters
2010-05-23 03:07:47 -04:00
Slava Pestov
e65a1b301a
cpu.x86.64: callback prologue was clobbering 5th parameter register on x86-64
2010-05-23 03:00:53 -04:00
Joe Groff
746810c939
system-info.windows.nt: lingering string C type
2010-05-22 19:23:45 -07:00
Slava Pestov
9131335371
ecdsa: C types can't be strings anymore
2010-05-22 16:23:29 -04:00
Slava Pestov
894b09696a
chipmunk.demo: fix load error
2010-05-22 03:24:04 -04:00
Slava Pestov
b8ec5c6176
Stack allocation improvements
...
- New with-out-parameters combinator
- Inhibit tail call optimization in frames with local allocation, to ensure that passing a stack allocated value to the last word in the quotation works
- local allocations are now aligned properly
- spill slots are now aligned properly aligned in frames which have parameter and local allocation areas
2010-05-22 02:37:00 -04:00
Doug Coleman
cfa736ab29
Clarify and reword alarms documentation
2010-05-22 00:17:30 -05:00
Doug Coleman
c80294a38b
Remove dependency on tick unit
2010-05-21 23:53:55 -05:00
Doug Coleman
ce95cea303
Finish renaming micros->nanos in game code, update libs
2010-05-21 23:50:42 -05:00
Doug Coleman
f0183deffa
Remove alarms from using list, minor refactoring
2010-05-21 20:48:33 -05:00
Doug Coleman
1cca8f0611
Rotate logs every day, but wait a day first
2010-05-21 20:44:38 -05:00
Doug Coleman
179acf5ea6
Update code base for new alarms api
2010-05-21 20:42:12 -05:00
Doug Coleman
3a8aac8c76
Cleaner implementation of alarms. Separate creating alarm from starting/stopping them.
2010-05-21 20:29:25 -05:00
Doug Coleman
f1ffbd221d
Make the alarm test wait for the promise to be fulfilled instead of returning immediately and failing
2010-05-21 20:03:32 -05:00
Joe Groff
e7767bd3f2
Merge branch 'master' of factorcode.org:/git/factor
2010-05-21 16:40:41 -07:00
Niklas.Waern
f875324e77
x11.xinput2.ffi: make XI*Mask less ugly
2010-05-22 01:36:04 +02:00
Slava Pestov
7e77b35502
io.backend.unix: make timeouts work on stdin once Doug fixes alarms
2010-05-21 19:09:15 -04:00
Slava Pestov
2f3963d055
alarms: add a couple of unit tests
2010-05-21 19:09:01 -04:00
Niklas.Waern
c51b6e0501
x11.xlib: add GenericEvent constant
2010-05-22 00:29:38 +02:00
Niklas.Waern
8493b7a57f
x11.xinput2: xi2-available?
2010-05-22 00:12:51 +02:00
Niklas.Waern
1ba823c32f
x11.xlib: add a few things for xinput2
2010-05-22 00:12:51 +02:00
Niklas.Waern
32c13c2a6f
x11.xinput2.ffi
2010-05-22 00:12:51 +02:00
Niklas.Waern
ddff7be111
x11.xinput2.constants
2010-05-22 00:12:50 +02:00
Niklas.Waern
f1f55c3fa3
create basis/x11/xinput2
2010-05-22 00:12:50 +02:00
Doug Coleman
7a41f5da2e
Fix using list in sequences.unrolled, keys/values was not appropriate in several locations
2010-05-21 15:28:05 -05:00
Doug Coleman
7df7c389c7
Change alarm start variable to store nano-count of start time instead of (nano-count + interval)
2010-05-21 13:28:03 -05:00
Doug Coleman
a87656a46c
Simplify the alarms implementation a bit
2010-05-21 13:19:15 -05:00
Doug Coleman
529b4d111e
Fix using list for keys/values change
2010-05-21 12:48:06 -05:00
Doug Coleman
c0169fea1a
Use overhauled alarms in game.loop
2010-05-21 12:48:06 -05:00
Doug Coleman
d03e326059
- Change alarms to run in a single spawned green thread instead of spawning a new thread for each iteration of the alarm so game.loop can use alarms -- the old behavior can be embedded by calling in-thread in your alarm handler quotation
...
- Remove current-alarm dynamic variable in favor of optionally passing the alarm on the stack to the quotation
- Reschedule alarms based on a multiple of the interval from the original start time to eliminate alarm drift over time
- Clarify alarm contract in docs
- Fix later example
2010-05-21 12:48:05 -05:00
Doug Coleman
e559f1470b
Use keys/values where appropriate
2010-05-21 12:48:04 -05:00
Doug Coleman
a2833d31c9
Fix typo in stack effect docs
2010-05-21 12:48:04 -05:00
Joe Groff
e282a922af
cuda.libraries: make grid tuple read-only, grid-dim/block-dim foldable, and CUDA-FUNCTION: words inline so that kernel call sites can optimize
2010-05-20 18:10:17 -07:00
Joe Groff
aa80bb060d
cuda.libraries, cuda.syntax: support for both 32- and 64-bit CUDA pointer abis. make CUDA-LIBRARY: read the abi as part of the library definition
2010-05-20 17:56:45 -07:00
Joe Groff
6068a4fa14
cuda.libraries: rework parameter passing to fill entire parameter space in one API call
2010-05-20 17:23:47 -07:00
Joe Groff
ccf8ed377b
cuda.libraries: scrape out some useless code
2010-05-20 15:57:23 -07:00
Joe Groff
1c07f69833
cuda.libraries, cuda.syntax: factor generated CUDA-FUNCTION: word bodies into a "cuda-invoke" macro; add CUDA-GLOBAL: for referencing global symbols
2010-05-20 15:45:35 -07:00
Joe Groff
2542bb42cf
cuda.libraries: rename "function-launcher" to "grid", 2<<< to <grid>, 3<<< to <grid-shared>, 4<<< to <grid-shared-stream>
2010-05-20 14:59:27 -07:00
Joe Groff
7f8e55760d
improve cuda library organization
2010-05-20 14:40:26 -07:00
Slava Pestov
8d6ed23cab
io.files: fix unit test
2010-05-19 20:47:22 -04:00