// // 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. // // withthreads.cfa -- // // Author : Thierry Delisle // Created On : Tue Jul 16 12:14:39 2019 // Last Modified By : // Last Modified On : // Update Count : // #include #include #include thread Dummy {}; void main( Dummy & ) {} int main() { if(threading_enabled()) { stdout | "YES"; } else { stdout | "NO"; } Dummy d; return 0; } // Local Variables: // // tab-width: 4 // // compile-command: "cfa withthreads.cfa" // // End: //