// // 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. // // monitor -- // // Author : Thierry Delisle // Created On : Thd Feb 23 12:27:26 2017 // Last Modified By : Peter A. Buhr // Last Modified On : Sat Oct 7 18:06:45 2017 // Update Count : 10 // #pragma once #include #include #include "invoke.h" #include "stdlib" trait is_monitor(dtype T) { monitor_desc * get_monitor( T & ); void ^?{}( T & mutex ); }; static inline void ?{}(monitor_desc & this) { (this.lock){}; (this.entry_queue){}; (this.signal_stack){}; this.owner = NULL; this.recursion = 0; this.mask.accepted = NULL; this.mask.clauses = NULL; this.mask.size = 0; this.dtor_node = NULL; } // static inline int ?