Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
224a6bca
Commit
224a6bca
authored
Sep 29, 1999
by
Chris Ball
Committed by
Ovidiu Predescu
Sep 29, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed deallocation of a mutex in thr-single.c (patch from Chris Ball <cball@fmco.com>).
From-SVN: r29701
parent
ab31268c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
libobjc/ChangeLog
+4
-0
libobjc/thr-posix.c
+14
-0
No files found.
libobjc/ChangeLog
View file @
224a6bca
Thu Sep 23 07:19:12 1999 Chris Ball <cball@fmco.com>
* thr-posix.c (__objc_mutex_deallocate): made deallocate work.
Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
Tue Sep 21 07:47:10 1999 Jeffrey A Law (law@cygnus.com)
* Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
* Makefile.in (gc.o, gc_gc.o): Do not pass -fgnu-runtime to
...
...
libobjc/thr-posix.c
View file @
224a6bca
...
@@ -145,6 +145,20 @@ __objc_mutex_allocate(objc_mutex_t mutex)
...
@@ -145,6 +145,20 @@ __objc_mutex_allocate(objc_mutex_t mutex)
int
int
__objc_mutex_deallocate
(
objc_mutex_t
mutex
)
__objc_mutex_deallocate
(
objc_mutex_t
mutex
)
{
{
int
count
=
1
;
/*
* Posix Threads specifically require that the thread be unlocked for
* pthread_mutex_destroy to work.
*/
while
(
count
)
{
if
((
count
=
pthread_mutex_unlock
((
pthread_mutex_t
*
)
mutex
->
backend
))
<
0
)
return
-
1
;
}
if
(
pthread_mutex_destroy
((
pthread_mutex_t
*
)
mutex
->
backend
))
if
(
pthread_mutex_destroy
((
pthread_mutex_t
*
)
mutex
->
backend
))
return
-
1
;
return
-
1
;
...
...
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