Commit 81921308 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

taxisCopyTimestep: added mutex_lock

parent 39022c2f
2010-10-28 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* taxisCopyTimestep: added mutex_lock
2010-10-26 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* cgribexAddRecord: correct xinc/yinc if necessary [report: Anders Ullerstig]
......
......@@ -682,6 +682,8 @@ void taxisCopyTimestep(int taxisID2, int taxisID1)
taxis_check_ptr(func, taxisptr1);
taxis_check_ptr(func, taxisptr2);
TAXIS_LOCK();
taxisptr2->rdate = taxisptr1->rdate;
taxisptr2->rtime = taxisptr1->rtime;
......@@ -695,6 +697,8 @@ void taxisCopyTimestep(int taxisID2, int taxisID1)
taxisptr2->vdate_ub = taxisptr1->vdate_ub;
taxisptr2->vtime_ub = taxisptr1->vtime_ub;
}
TAXIS_UNLOCK();
}
......@@ -1371,6 +1375,8 @@ void ptaxisInit(taxis_t *taxisptr)
void ptaxisCopy(taxis_t *dest, taxis_t *source)
{
TAXIS_LOCK();
/* memcpy(dest, source, sizeof(taxis_t)); */
dest->used = source->used;
dest->type = source->type;
......@@ -1386,4 +1392,6 @@ void ptaxisCopy(taxis_t *dest, taxis_t *source)
dest->vtime_lb = source->vtime_lb;
dest->vdate_ub = source->vdate_ub;
dest->vtime_ub = source->vtime_ub;
TAXIS_UNLOCK();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment