Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^4: threads and their alternatives

by Corion (Pope)
on Sep 30, 2011 at 21:51 UTC ( #928933=note: print w/replies, xml ) Need Help??

in reply to Re^3: threads and their alternatives
in thread Alternatives to threads for maintaining GUI app responsiveness

So far, I've only used AnyEvent for TCP and timers, and that works well on Windows. I suppose it works well enough with pipes, at least it has lots of Win32-specific code to create a selectable pipe on Win32. I haven't used AnyEvent::DBI, as I'd use a thread instead of an external process if I had the need to do asynchronous DB access on Windows, and the code looks as if it uses features like selectable filehandles, that just aren't conveniently available on Windows...

Replies are listed 'Best First'.
Re^5: threads and their alternatives
by BrowserUk (Pope) on Sep 30, 2011 at 22:20 UTC
    I haven't used AnyEvent::DBI, as I'd use a thread instead of an external process

    Then what would be the point of AnyEvent for the OPs problem?

    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      My reply was more in regard to your statement that "there exists no solution" for calling blocking APIs (outside of threads), where I wanted to highlight that there exists no good solution (outside of threads).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://928933]
[Discipulus]: a fabolous mornig shall be with you monks and nuns!
[marto]: Morning, looks like our client office will be closed due to bad weather

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2018-01-17 07:46 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (196 votes). Check out past polls.