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
f4c016e6
Commit
f4c016e6
authored
Dec 01, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: Remove temporary runtime_cond_wait function.
From-SVN: r181897
parent
9a944f58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
27 deletions
+0
-27
libgo/runtime/runtime.h
+0
-3
libgo/runtime/thread.c
+0
-24
No files found.
libgo/runtime/runtime.h
View file @
f4c016e6
...
...
@@ -337,6 +337,3 @@ void reflect_call(const struct __go_func_type *, const void *, _Bool, _Bool,
#ifdef __rtems__
void
__wrap_rtems_task_variable_add
(
void
**
);
#endif
/* Temporary. */
void
runtime_cond_wait
(
pthread_cond_t
*
,
pthread_mutex_t
*
);
libgo/runtime/thread.c
View file @
f4c016e6
...
...
@@ -90,27 +90,3 @@ runtime_minit(void)
if
(
sigaltstack
(
&
ss
,
nil
)
<
0
)
*
(
int
*
)
0xf1
=
0xf1
;
}
// Temporary functions, which will be removed when we stop using
// condition variables.
void
runtime_cond_wait
(
pthread_cond_t
*
cond
,
pthread_mutex_t
*
mutex
)
{
int
i
;
runtime_entersyscall
();
i
=
pthread_cond_wait
(
cond
,
mutex
);
if
(
i
!=
0
)
runtime_throw
(
"pthread_cond_wait"
);
i
=
pthread_mutex_unlock
(
mutex
);
if
(
i
!=
0
)
runtime_throw
(
"pthread_mutex_unlock"
);
runtime_exitsyscall
();
i
=
pthread_mutex_lock
(
mutex
);
if
(
i
!=
0
)
runtime_throw
(
"pthread_mutex_lock"
);
}
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