// // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // Keywords.h -- Implement concurrency constructs from their keywords. // // Author : Thierry Delisle // Created On : Fri Mar 10 15:16:42 2017 // Last Modified By : // Last Modified On : // Update Count : 1 // #pragma once #include // for list class Declaration; namespace ast { class TranslationUnit; } namespace Concurrency { void applyKeywords( std::list< Declaration * > & translationUnit ); void implementMutexFuncs( std::list< Declaration * > & translationUnit ); void implementThreadStarter( std::list< Declaration * > & translationUnit ); /// Implement the sue-like keywords and the suspend keyword. void implementKeywords( ast::TranslationUnit & translationUnit ); /// Implement the mutex parameters and mutex statement. void implementMutex( ast::TranslationUnit & translationUnit ); /// Add the thread starter code to constructors. void implementThreadStarter( ast::TranslationUnit & translationUnit ); }; // Local Variables: // // tab-width: 4 // // mode: c++ // // compile-command: "make install" // // End: //