Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: threads on Windows

by weismat (Friar)
on Feb 12, 2009 at 05:46 UTC ( #743229=note: print w/ replies, xml ) Need Help??


in reply to threads on Windows

I think that Windows might allow you to access STDIN only from the main thread.
This is at least the normal convention in Windows GUI programming.
I am not sure if this is the only issue in your code, but you may consider to change your code accordingly and check if it will work then.


Comment on Re: threads on Windows
Re^2: threads on Windows
by kennethk (Monsignor) on Feb 12, 2009 at 14:19 UTC
    I got the code for a non-blocking read from Re^3: Non Blocking input on Win32 platforms. My original idea was ultimately to replace the usage of STDIN CLI with a GUI thread passing messages to a boss/worker model, since I don't want to surrender execution control to the GUI.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://743229]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-08-22 13:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (157 votes), past polls