00001 /******************************************************************** 00002 * Copyright (C) 2011 by Verimag * 00003 * Initial author: Matthieu Moy * 00004 * This file must not be distributed outside Verimag * 00005 ********************************************************************/ 00006 00014 #include "during-seq.h" 00015 #include "utils/io-lock.h" 00016 00017 sc_during_seq::sc_during_seq() { 00018 L_COUT << "// TEST-IGNORE: sc_during_seq instanciated" << std::endl; 00019 } 00020 00021 void sc_during_seq::extra_time(const sc_core::sc_time & t) { 00022 // We're in a sequential implementation, don't bother and use 00023 // wait directly. 00024 sc_core::wait(t); 00025 } 00026 00027 void sc_during_seq::sc_call(const boost::function<void()> & f) { 00028 // We're already in a SystemC thread, nothing fancy to do. 00029 f(); 00030 };