Example #1
0
void IntConsumer::run() {
  Int * in = consume(input);
  
  log("consuming "+in->to_string());
  timer.randSleep(200);
  
  release(input);
}
Example #2
0
File: int.cpp Project: rhexo/mpdc
 std::string 
 to_string(Int& d) {
   return d.to_string();
 }
Example #3
0
File: int.cpp Project: rhexo/mpdc
 Int::Int(Int& d) {
   // Копируем, через преобразование
   this->to_internal(d.to_string());
 };