std::stringstream stream;
stream << mbox_->get_id() << ' ' << (void*)src_buff_ << ' ' << src_buff_size_;
strcpy(buffer, stream.str().c_str());
+ XBT_DEBUG("SendObserver mbox:%u buff:%p size:%zu", mbox_->get_id(), src_buff_, src_buff_size_);
}
void CommIrecvSimcall::serialize(Simcall& type, char* buffer)
{
std::stringstream stream(buffer);
stream >> timeout_ >> comm_ >> sender_ >> receiver_ >> mbox_ >> src_buff_ >> dst_buff_ >> size_;
+ XBT_DEBUG("CommWaitTransition tout:%f comm:%p, sender:%ld receiver:%ld mbox:%u sbuff:%p rbuff:%p size:%zu", timeout_,
+ comm_, sender_, receiver_, mbox_, src_buff_, dst_buff_, size_);
}
std::string CommWaitTransition::to_string(bool verbose)
{
{
std::stringstream stream(buffer);
stream >> mbox_ >> src_buff_ >> size_;
+ XBT_DEBUG("SendTransition mbox:%u buff:%p size:%zu", mbox_, src_buff_, size_);
}
std::string CommSendTransition::to_string(bool verbose = false)
{
class CommWaitTransition : public Transition {
double timeout_;
- uintptr_t comm_;
+ void* comm_;
aid_t sender_;
aid_t receiver_;
unsigned mbox_;
- unsigned char* src_buff_;
- unsigned char* dst_buff_;
+ void* src_buff_;
+ void* dst_buff_;
size_t size_;
friend CommSendTransition;
friend CommRecvTransition;