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
9310f1eb
Commit
9310f1eb
authored
Dec 27, 1999
by
Bryce McKinlay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit forgotten Thread.java patch.
From-SVN: r31094
parent
f4524c9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
libjava/java/lang/Thread.java
+13
-4
No files found.
libjava/java/lang/Thread.java
View file @
9310f1eb
...
...
@@ -73,15 +73,15 @@ public class Thread implements Runnable
public
static
boolean
interrupted
()
{
return
currentThread
().
isInterrupted
();
return
currentThread
().
isInterrupted
_
();
}
// FIXME: it seems to me that this should be synchronized.
// Check the threads interrupted status. Note that this does not clear the
// threads interrupted status (per JDK 1.2 online API documentation).
public
boolean
isInterrupted
()
{
boolean
r
=
interrupt_flag
;
interrupt_flag
=
false
;
return
r
;
return
interrupt_flag
;
}
public
final
boolean
isAlive
()
...
...
@@ -112,6 +112,15 @@ public class Thread implements Runnable
// This method exists only to avoid a warning from the C++ compiler.
private
static
final
native
void
run__
(
Object
obj
);
private
native
final
void
finish_
();
// Convenience method to check and clear the thread's interrupted status.
private
boolean
isInterrupted_
()
{
boolean
r
=
interrupt_flag
;
interrupt_flag
=
false
;
return
r
;
}
private
final
void
run_
()
{
try
...
...
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