[Info-vax] yet another sys$qiow question

Chris Scheers chris at applied-synergy.com
Fri Aug 21 14:11:52 EDT 2015


Johnny Billquist wrote:
> 
> One example that I could think of, that might not be so poorly written 
> code, which could bite you, would be something like:
> 
> SYS$QIO(<arguments>);
> if (iosb == 0) {
>   <do some stuff>
>   <wait for I/O completion>
>   printf("IOSB is now %x\n", iosb);
> }

Ignoring the volatile discussion for now (pun intended), I need to point 
out that this code is flawed because it does not allow for the case 
where the $QIO completes before execution of the "if".

-- 
-----------------------------------------------------------------------
Chris Scheers, Applied Synergy, Inc.

Voice: 817-237-3360            Internet: chris at applied-synergy.com
   Fax: 817-237-3074



More information about the Info-vax mailing list