ADT
        arm-eh
        ast-experimental
        enum
        forall-pointer-decay
        jacob/cs343-translation
        new-ast
        new-ast-unique-expr
        pthread-emulation
        qualifiedEnum
      
      
        
          | 
            Last change
 on this file since 04b5cef was             1def18bb, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago           | 
        
        
          | 
             
fix emacs compile command 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            695 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [2026bb6] | 1 | //
 | 
|---|
 | 2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
 | 
|---|
 | 3 | //
 | 
|---|
 | 4 | // The contents of this file are covered under the licence agreement in the
 | 
|---|
 | 5 | // file "LICENCE" distributed with Cforall.
 | 
|---|
 | 6 | //
 | 
|---|
 | 7 | // nothreads.cfa --
 | 
|---|
 | 8 | //
 | 
|---|
 | 9 | // Author           : Thierry Delisle
 | 
|---|
 | 10 | // Created On       : Tue Jul 16 12:14:39 2019
 | 
|---|
 | 11 | // Last Modified By :
 | 
|---|
 | 12 | // Last Modified On :
 | 
|---|
 | 13 | // Update Count     :
 | 
|---|
 | 14 | //
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | #include <fstream.hfa>
 | 
|---|
 | 17 | #include <stdlib.hfa>
 | 
|---|
 | 18 | 
 | 
|---|
 | 19 | #include <thread.hfa>
 | 
|---|
 | 20 | 
 | 
|---|
 | 21 | thread Dummy {};
 | 
|---|
 | 22 | void main( Dummy & ) {}
 | 
|---|
 | 23 | 
 | 
|---|
 | 24 | int main() {
 | 
|---|
 | 25 |         if(threading_enabled()) {
 | 
|---|
 | 26 |                 stdout | "YES";
 | 
|---|
 | 27 |         } else {
 | 
|---|
 | 28 |                 stdout | "NO";
 | 
|---|
 | 29 |         }
 | 
|---|
 | 30 |         Dummy d;
 | 
|---|
 | 31 |         return 0;
 | 
|---|
 | 32 | }
 | 
|---|
 | 33 | 
 | 
|---|
 | 34 | // Local Variables: //
 | 
|---|
 | 35 | // tab-width: 4 //
 | 
|---|
| [1def18bb] | 36 | // compile-command: "cfa withthreads.cfa" //
 | 
|---|
 | 37 | // End: //
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.