ns-3

what if notify() is called before wait()?

血红的双手。 提交于 2019-12-03 11:12:39
I have a situation where a notify() 'can' be called before a wait(). I am trying to make a simulator to schedule its next event when I 'notify' him by sending him messages. So I have devised a wait->notify->scedule chain void Broker::pause() { boost::unique_lock<boost::mutex> lock(m_pause_mutex); { std::cout << "pausing the simulation" << std::endl; m_cond_cnn.wait(lock); std::cout << "Simulation UNpaused" << std::endl; // the following line causes the current function to be called at // a later time, and a notify() can happen before the current function // is called again Simulator::Schedule

ISO C++ forbids declaration of ‘multiset’ with no type

╄→尐↘猪︶ㄣ 提交于 2019-12-02 23:56:49
问题 I am getting this error while building a software (ns3) using waf In file included from ../src/internet-stack/mp-tcp-typedefs.cc:6: ../src/internet-stack/mp-tcp-typedefs.h:151: error: ISO C++ forbids declaration of ‘multiset’ with no type ../src/internet-stack/mp-tcp-typedefs.h:151: error: expected ‘;’ before ‘<’ token In file included from ../src/internet-stack/mp-tcp-socket-impl.cc:17: ../src/internet-stack/mp-tcp-typedefs.h:151: error: ISO C++ forbids declaration of ‘multiset’ with no type

ISO C++ forbids declaration of ‘multiset’ with no type

百般思念 提交于 2019-12-02 13:45:56
I am getting this error while building a software (ns3) using waf In file included from ../src/internet-stack/mp-tcp-typedefs.cc:6: ../src/internet-stack/mp-tcp-typedefs.h:151: error: ISO C++ forbids declaration of ‘multiset’ with no type ../src/internet-stack/mp-tcp-typedefs.h:151: error: expected ‘;’ before ‘<’ token In file included from ../src/internet-stack/mp-tcp-socket-impl.cc:17: ../src/internet-stack/mp-tcp-typedefs.h:151: error: ISO C++ forbids declaration of ‘multiset’ with no type ../src/internet-stack/mp-tcp-typedefs.h:151: error: expected ‘;’ before ‘<’ token I searched for the