ui.backend.cocoa: factor out stop-io-thread word for use by upcoming Gtk UI backend
parent
b8c6799527
commit
8fd6a24edb
|
@ -14,6 +14,9 @@ SYMBOL: io-thread-running?
|
||||||
[ [ io-thread-running? get-global ] [ io-thread ] while ]
|
[ [ io-thread-running? get-global ] [ io-thread ] while ]
|
||||||
"I/O wait" spawn drop ;
|
"I/O wait" spawn drop ;
|
||||||
|
|
||||||
|
: stop-io-thread ( -- )
|
||||||
|
f io-thread-running? set-global ;
|
||||||
|
|
||||||
[
|
[
|
||||||
t io-thread-running? set-global
|
t io-thread-running? set-global
|
||||||
start-io-thread
|
start-io-thread
|
||||||
|
|
|
@ -252,7 +252,7 @@ M: cocoa-ui-backend (with-ui)
|
||||||
init-clipboard
|
init-clipboard
|
||||||
cocoa-startup-hook get call( -- )
|
cocoa-startup-hook get call( -- )
|
||||||
start-ui
|
start-ui
|
||||||
f io-thread-running? set-global
|
stop-io-thread
|
||||||
init-thread-timer
|
init-thread-timer
|
||||||
reset-run-loop
|
reset-run-loop
|
||||||
NSApp -> run
|
NSApp -> run
|
||||||
|
|
Loading…
Reference in New Issue