コード例 #1
0
ファイル: int_consumer.cpp プロジェクト: ashafiei/tmf
void IntConsumer::run() {
  Int * in = consume(input);
  
  log("consuming "+in->to_string());
  timer.randSleep(200);
  
  release(input);
}
コード例 #2
0
ファイル: int.cpp プロジェクト: rhexo/mpdc
 std::string 
 to_string(Int& d) {
   return d.to_string();
 }
コード例 #3
0
ファイル: int.cpp プロジェクト: rhexo/mpdc
 Int::Int(Int& d) {
   // Копируем, через преобразование
   this->to_internal(d.to_string());
 };