Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
81921308
Commit
81921308
authored
Oct 28, 2010
by
Uwe Schulzweida
Browse files
taxisCopyTimestep: added mutex_lock
parent
39022c2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
81921308
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]
...
...
src/taxis.c
View file @
81921308
...
...
@@ -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
();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment