#include <Simulator.h>
Inheritance diagram for ACE_RMCast::Simulator:


Public Member Functions | |
| Simulator () | |
| virtual void | send (Message_ptr m) |
Private Attributes | |
| Message_ptr | hold_ |
| Mutex | mutex_ |
|
|
Definition at line 10 of file Simulator.cpp. References ACE_OS::srand().
00011 {
00012 ACE_OS::srand ((unsigned int)ACE_OS::time (0));
00013 }
|
|
|
Reimplemented from ACE_RMCast::Out_Element. Definition at line 15 of file Simulator.cpp. References ACE_RMCast::Message_ptr.
00016 {
00017 // Note: Simulator may work in unpredictable ways mainly due
00018 // to the "reliable loopback" mechanism.
00019 //
00020 out_->send (m);
00021 return;
00022
00023 /*int r (rand ());
00024
00025 if ((r % 3) == 0) return;
00026
00027 Lock l (mutex_);
00028
00029 if (hold_.get ())
00030 {
00031 out_->send (m);
00032 out_->send (hold_);
00033 }
00034 else
00035 {
00036 hold_ = m;
00037 }*/
00038 }
|
|
|
Definition at line 24 of file Simulator.h. |
|
|
Definition at line 25 of file Simulator.h. |
1.3.6