Thread::Queue on Windows 98

R

Richard Trahan

I can't get Thread::Queue to work on Windows 98, although Thread::new,
join, etc., seem to work ok. Specifically, the Queue example in Wall
doesn't dequeue anything. No error messages appear. Has anyone gotten
this to run on W98? Does it work on W2000?
 
S

Sisyphus

Richard said:
I can't get Thread::Queue to work on Windows 98, although Thread::new,
join, etc., seem to work ok. Specifically, the Queue example in Wall
doesn't dequeue anything. No error messages appear. Has anyone gotten
this to run on W98? Does it work on W2000?

Could you use the "threads" and "threads::shared" modules instead ? - as
is recommended by 'perldoc Thread'.

Cheers,
Rob
 
S

Sisyphus

Richard said:
Thank you for responding.

No, I can't. I did read about that, but I'm using ActivePerl, which does
not support "threads".

No - afaik, one thing that ActiveState perl *does* support is threads.
(I *think* I'm right on this - for one thing it's used for fork()
emulation - I'm no expert on threads, so apologies if I'm being
execeedingly dumb.)

Run:
perl -V:useithreads

That should report that useithreads=`define'.
And you should find that you have both the "threads" and
"threads::shared" modules, and that they load without any problem. From
what I've read they function fairly well on Windows.

Cheers,
Rob
 
R

Richard Trahan

Sisyphus said:
Could you use the "threads" and "threads::shared" modules instead ? - as
is recommended by 'perldoc Thread'.

Thank you for responding.

No, I can't. I did read about that, but I'm using ActivePerl, which does
not support "threads".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,901
Members
47,439
Latest member
elif2sghost

Latest Threads

Top