// // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // io-acquire.cfa -- // test whether or not fstream acquire using a weakso locks pulls in threads // // Author : Thierry Delisle // Created On : Tue Jul 16 12:14:39 2019 // Last Modified By : // Last Modified On : // Update Count : // #include #include int main() { int i; if(threading_enabled()) { stdout | acquire | "YES"; stdin | i; } else { stdout | acquire | "NO"; stdin | i; } } // Local Variables: // // tab-width: 4 // // compile-command: "cfa io-acquire.cfa" // // End: //