Skip to content

Commit

Permalink
combine progress/data messages for throttling purposes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Mar 25, 2018
1 parent 8e9bdd3 commit 668c402
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions VCellMessaging/src/SimulationMessaging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,8 @@ void SimulationMessaging::setWorkerEvent(WorkerEvent* arg_workerEvent) {
else {
bool ifset = true;
bool iftry = false;
static int lastStatus = -1;
bool critical = criticalDelivery(*arg_workerEvent);
if (!critical && arg_workerEvent->status == lastStatus) {
if (!critical) {
iftry = true;
//
// for portability, if not POSIX, time_t not guaranteed to be in seconds
Expand All @@ -367,9 +366,6 @@ void SimulationMessaging::setWorkerEvent(WorkerEvent* arg_workerEvent) {
{ //scope for lock
WorkerEventLocker locker(*this,iftry);
if (locker.locked) {
if (!critical) {
lastStatus = arg_workerEvent->status;
}
events.push_back(arg_workerEvent);
}
} //unlock worker event
Expand Down

0 comments on commit 668c402

Please sign in to comment.