You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
Hi Nicolas,
Hopefully a simple one: is there a way to spawn a background process in Neko? Say, for example, a Haxe compilation server :)
Can't seem to find a way to detach from/not block the main process.
Thanks,
David
Cauê Waneck
unread,
May 2, 2012, 5:12:26 PM5/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
Hey David!
You can start a new Thread and call a new Process in there. If you need to use the result in your main thread, though, you might need to block anyway or have an event loop and use some kind of polling with e.g. neko.vm.Deque
Basically a simple util for starting/stopping a haxe compilation server in a long running neko program (for the build tool I'm working on).
Cheers,
David
On Wednesday, May 2, 2012 9:45:43 PM UTC+1, David Peek wrote:
Cauê Waneck
unread,
May 9, 2012, 6:08:31 PM5/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
Hey David!
Thanks so much for the sample code, here's what I made with it in case it's on any use to anyone:
I'm happy I could have helped!
Just a small question, have you tried using Thread.readMessage with the block parameter as true? You wouldn't have to do the loop, if that doesn't interfere with the process :)