Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
b1fefb19
Commit
b1fefb19
authored
Dec 11, 2019
by
bouazizrahma
Browse files
fix the generation of the vcd trace using mutex
parent
fd5e2163
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/po_hi_protected.c
View file @
b1fefb19
...
...
@@ -62,15 +62,15 @@ int __po_hi_protected_init ()
int
__po_hi_protected_lock
(
__po_hi_protected_t
protected_id
)
{
__PO_HI_INSTRUMENTATION_VCD_WRITE
(
"1w%d
\n
"
,
protected_id
);
//
__PO_HI_INSTRUMENTATION_VCD_WRITE("1w%d\n", protected_id);
if
(
__po_hi_mutex_lock
(
&
__po_hi_protected_mutexes
[
protected_id
])
!=
__PO_HI_SUCCESS
)
{
__PO_HI_INSTRUMENTATION_VCD_WRITE
(
"0w%d
\n
"
,
protected_id
);
//
__PO_HI_INSTRUMENTATION_VCD_WRITE("0w%d\n", protected_id);
__PO_HI_DEBUG_CRITICAL
(
"[PROTECTED] Error when lock protected resource %d
\n
"
,
protected_id
);
return
__PO_HI_ERROR_PROTECTED_LOCK
;
}
__PO_HI_INSTRUMENTATION_VCD_WRITE
(
"0w%d
\n
"
,
protected_id
);
__PO_HI_INSTRUMENTATION_VCD_WRITE
(
"1l%d
\n
"
,
protected_id
);
//
__PO_HI_INSTRUMENTATION_VCD_WRITE("0w%d\n", protected_id);
//
__PO_HI_INSTRUMENTATION_VCD_WRITE("1l%d\n", protected_id);
return
__PO_HI_SUCCESS
;
}
...
...
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