mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
[java] Remove dead code
java/runtime/MercuryThreadPool.java:
As above.
This commit is contained in:
@@ -49,8 +49,6 @@ public class MercuryThreadPool
|
||||
{
|
||||
public static final boolean debug = false;
|
||||
|
||||
private static MercuryThreadPool instance;
|
||||
|
||||
private MercuryThreadFactory thread_factory;
|
||||
|
||||
/*
|
||||
@@ -440,29 +438,6 @@ public class MercuryThreadPool
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the number of currently queued tasks.
|
||||
* @return true if all tasks have been completed.
|
||||
*/
|
||||
protected boolean checkTasks()
|
||||
{
|
||||
long num_tasks_submitted;
|
||||
long num_tasks_completed;
|
||||
boolean done;
|
||||
|
||||
tasks_lock.lock();
|
||||
try {
|
||||
num_tasks_submitted = this.num_tasks_submitted;
|
||||
num_tasks_completed = this.num_tasks_completed;
|
||||
|
||||
done = (num_tasks_submitted == num_tasks_completed);
|
||||
} finally {
|
||||
tasks_lock.unlock();
|
||||
}
|
||||
|
||||
return done;
|
||||
}
|
||||
|
||||
/**
|
||||
* Run the thread pool. This is usually called by runMain()
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user