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
3d57d7ba
Commit
3d57d7ba
authored
Jun 24, 2003
by
Loren J. Rittle
Committed by
Loren J. Rittle
Jun 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* include/ext/mt_allocator.h: Portability.
From-SVN: r68406
parent
d46c570d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
libstdc++-v3/ChangeLog
+2
-0
libstdc++-v3/include/ext/mt_allocator.h
+9
-7
No files found.
libstdc++-v3/ChangeLog
View file @
3d57d7ba
...
...
@@ -7,6 +7,8 @@
* config/abi/alpha-freebsd5/baseline_symbols.txt: New file.
* config/abi/sparc-freebsd5/baseline_symbols.txt: New file.
* include/ext/mt_allocator.h: Portability.
2003-06-23 Benjamin Kosnik <bkoz@redhat.com>
* docs/html/17_intro/libstdc++-assign.txt: Update address.
...
...
libstdc++-v3/include/ext/mt_allocator.h
View file @
3d57d7ba
...
...
@@ -613,13 +613,15 @@ namespace __gnu_cxx
if
(
!
_S_bin
[
bin
].
mutex
)
__throw_bad_alloc
();
/*
* This is not only ugly - it's extremly non-portable!
* However gthr.h does not currently provide a
* __gthread_mutex_init() call. The correct solution to
* this problem needs to be discussed.
*/
pthread_mutex_init
(
_S_bin
[
bin
].
mutex
,
NULL
);
#ifdef __GTHREAD_MUTEX_INIT
{
// Do not copy a POSIX/gthr mutex once in use.
__gthread_mutex_t
__tmp
=
__GTHREAD_MUTEX_INIT
;
*
_S_bin
[
bin
].
mutex
=
__tmp
;
}
#else
{
__GTHREAD_MUTEX_INIT_FUNCTION
(
_S_bin
[
bin
].
mutex
);
}
#endif
#endif
for
(
size_t
thread
=
0
;
thread
<=
_S_max_threads
;
thread
++
)
...
...
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