Jump to content
Sign in to follow this  

How Autoit Support Nonblocking Read from Stdin

Recommended Posts


Although this question is not strictly Autoit related but I think many people here would be able to help.

StdoutRead() in Autoit is a non blocking function. I've checked some Windows programming textbook and it says anonymous pipe (which I think corresponds to the redirected stdio/stdout between 2 processes) cannot be made in non-blocking mode. I just want to know how Autoit itself achieves a nonblocking read from the redirected stdin.

I am actually trying to write a C program which read from its stdin in a nonblocking manner. However, all the ANSI C standard I/O library calls are blocking (it stops and wait for data from stdin). Could anyone provide some hints to me. Thx for your help.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this