Fibers in 0.9.0 release

10 views
Skip to first unread message

BPx

unread,
Jan 21, 2011, 3:26:12 PM1/21/11
to v8cgi
Doar the 0.9.0 build include fiber support? The docs do not mention it
as being optional and scons says it if enabled by default, but the
following code says Fiber is undefined:

var f = new Fiber('a', function() {
system.stdout("fiber");
});
f.becomeRunnable();
f.join();

Also, require() says the there is no module named 'fibers' (other
modules from the default build are loaded without problems so the
paths are fine):
var Fiber = require('fibers').Fiber;
[...]

I am using the windows 0.9.0 binaries from Google Code downloads.

Ondřej Žára

unread,
Jan 21, 2011, 4:24:59 PM1/21/11
to v8...@googlegroups.com
Hi there,

the "fibers" module is unfortunately available only on POSIX-compliant
systems. I was unable to compile this module on windows, mainly
because the windows threads library (pthreads-win32) does not offer
all functions required by the fibers module.

If you ever manage to compile the fibers module on windows, please let me know.


Sincerely,
Ondrej Zara


2011/1/21 BPx <blu...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups "v8cgi" group.
> To post to this group, send email to v8...@googlegroups.com.
> To unsubscribe from this group, send email to v8cgi+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/v8cgi?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages