You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2011/06/05 07:39:32 UTC
svn commit: r1131840 -
/incubator/mesos/trunk/src/third_party/libprocess/process.cpp
Author: benh
Date: Sun Jun 5 05:39:32 2011
New Revision: 1131840
URL: http://svn.apache.org/viewvc?rev=1131840&view=rev
Log:
Fixing assert bug and adding a comment.
Modified:
incubator/mesos/trunk/src/third_party/libprocess/process.cpp
Modified: incubator/mesos/trunk/src/third_party/libprocess/process.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/third_party/libprocess/process.cpp?rev=1131840&r1=1131839&r2=1131840&view=diff
==============================================================================
--- incubator/mesos/trunk/src/third_party/libprocess/process.cpp (original)
+++ incubator/mesos/trunk/src/third_party/libprocess/process.cpp Sun Jun 5 05:39:32 2011
@@ -887,6 +887,7 @@ public:
msg->to.port = p->pid.port;
msg->id = PROCESS_EXIT;
msg->len = 0;
+ // TODO(benh): Preserve happens-before when using clock.
p->enqueue(msg);
}
}
@@ -2023,10 +2024,6 @@ public:
if (receiver != NULL) {
// If sender is local, preserve happens-before timing.
if (sender != NULL) {
- // Current expectation is when this function gets called by a
- // sender the underlying local process is actually running!
- assert(pthread_self() == proc_thread && proc_process == sender);
-
acquire(timers);
{
if (clk != NULL)