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
7b5e6713
Commit
7b5e6713
authored
Mar 09, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re PR go/48019 (Need to handle EINTR in libgo testsuite)
PR go/48019 Ignore EINTR in runtime_lock_full. From-SVN: r170810
parent
8897c836
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
libgo/runtime/thread.c
+7
-2
No files found.
libgo/runtime/thread.c
View file @
7b5e6713
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
#include <errno.h>
#include "runtime.h"
#include "runtime.h"
#include "go-assert.h"
#include "go-assert.h"
...
@@ -32,8 +33,12 @@ static void runtime_lock_full(Lock *l) __attribute__ ((noinline));
...
@@ -32,8 +33,12 @@ static void runtime_lock_full(Lock *l) __attribute__ ((noinline));
static
void
static
void
runtime_lock_full
(
Lock
*
l
)
runtime_lock_full
(
Lock
*
l
)
{
{
if
(
sem_wait
(
&
l
->
sem
)
!=
0
)
for
(;;){
runtime_throw
(
"sem_wait failed"
);
if
(
sem_wait
(
&
l
->
sem
)
==
0
)
return
;
if
(
errno
!=
EINTR
)
runtime_throw
(
"sem_wait failed"
);
}
}
}
void
void
...
...
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