Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
i.zyryanov1
other
Commits
76b0a341
Commit
76b0a341
authored
10 months ago
by
i.zyryanov1
Browse files
Options
Download
Email Patches
Plain Diff
Update mutex.c
parent
7bfd5452
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mutex.c
mutex.c
+3
-3
No files found.
mutex.c
View file @
76b0a341
...
...
@@ -34,10 +34,10 @@ void mutex_unlock(mutex_t* mutex) {
}
}
mutex_t
my_mutex
;
void
*
thread_function
(
void
*
arg
)
{
mutex_lock
(
&
my_
mutex
);
mutex_unlock
(
&
my_
mutex
);
mutex_lock
(
&
mutex
);
mutex_unlock
(
&
mutex
);
return
NULL
;
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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