Searched defs:task (Results 1 - 25 of 102) sorted by relevance

12345

/openjdk7/jdk/test/sun/rmi/rmic/newrmic/equivalence/
H A DComputeServer.java32 * Called by the task and passes itself as an object
34 Object compute(Task task) throws RemoteException; argument
H A DComputeServerImpl.java29 * Class accepts a task and runs it in its own space.
41 * Accepts task and runs it
43 public Object compute(Task task) { argument
44 return task.run();
/openjdk7/hotspot/src/share/vm/runtime/
H A DjniPeriodicChecker.cpp28 #include "runtime/task.hpp"
36 void task() { os::run_periodic_checks(); } function in class:JniPeriodicCheckerTask
50 * register it with the WatcherThread as a periodic task.
54 // start up the periodic task
63 * task. This method is called from before_exit() in java.cpp and is only called
H A Dmemprofiler.cpp38 #include "runtime/task.hpp"
61 void task();
65 void MemProfilerTask::task() { function in class:MemProfilerTask
/openjdk7/jdk/test/java/nio/channels/AsynchronousSocketChannel/
H A DDieBeforeComplete.java119 static <T> Future<T> initiateAndDie(final Task<T> task) { argument
123 result.set(task.run());
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DCancellable.java38 void onCancel(PendingFuture<?,?> task); argument
/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/tasks/
H A DTaskServer.java34 * tasks. Whether the task is executed in the client thread or in another
45 * Submit a task to be executed.
46 * Once a task is submitted, it is guaranteed that either
47 * {@link com.sun.jmx.snmp.tasks.Task#run() task.run()} or
48 * {@link com.sun.jmx.snmp.tasks.Task#cancel() task.cancel()} will be called.
49 * <p>Whether the task is executed in the client thread (e.g.
50 * <code>public void submitTask(Task task) { task.run(); }</code>) or in
52 * public void submitTask(Task task) { new Thrad(task)
56 submitTask(Task task) argument
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/concurrent/
H A DLibDispatchConcurrentQueue.java36 public void execute(final Runnable task) { argument
37 LibDispatchNative.nativeExecuteAsync(ptr, task);
H A DLibDispatchMainQueue.java42 public void execute(final Runnable task) { argument
43 LibDispatchNative.nativeExecuteSync(ptr, task);
49 public void execute(final Runnable task) { argument
50 LibDispatchNative.nativeExecuteAsync(ptr, task);
H A DLibDispatchNative.java38 static native void nativeExecuteAsync(long nativeQueue, Runnable task); argument
39 static native void nativeExecuteSync(long nativeQueue, Runnable task); argument
/openjdk7/langtools/test/tools/javac/api/
H A DTestResolveError.java47 * of calling task.parseType with a name whose resolution depended on the setting
49 * This test has the same call, task.parseType("List<String>", clazz), but checks
63 task = (JavacTaskImpl)tool.getTask(pw, fm, null, null, null, compilationUnits);
64 elements = task.getElements();
65 types = task.getTypes();
69 toplevels = task.enter(task.parse());
91 DeclaredType type = (DeclaredType)task.parseType("List<String>", clazz);
98 JavacTaskImpl task; field in class:TestResolveError
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ci/
H A DciEnv.java74 public CompileTask task() { method in class:ciEnv
/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DLayoutQueue.java78 * Add a task that is not needed immediately because
81 public synchronized void addTask(Runnable task) { argument
86 tasks.addElement(task);
91 * Used by the worker thread to get a new task to execute
/openjdk7/jdk/src/share/classes/sun/awt/shell/
H A DShellFolderManager.java112 public <T> T invoke(Callable<T> task) throws Exception { argument
113 return task.call();
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DCompletionService.java56 * submitting a task to a {@code CompletionService}
58 * actions taken by that task, which in turn <i>happen-before</i>
64 * Submits a value-returning task for execution and returns a Future
65 * representing the pending results of the task. Upon completion,
66 * this task may be taken or polled.
68 * @param task the task to submit
69 * @return a Future representing pending completion of the task
70 * @throws RejectedExecutionException if the task cannot be
72 * @throws NullPointerException if the task i
74 submit(Callable<V> task) argument
90 submit(Runnable task, V result) argument
[all...]
H A DAbstractExecutorService.java77 * @param runnable the runnable task being wrapped
82 * the underlying task.
90 * Returns a <tt>RunnableFuture</tt> for the given callable task.
92 * @param callable the callable task being wrapped
96 * cancellation of the underlying task.
107 public Future<?> submit(Runnable task) { argument
108 if (task == null) throw new NullPointerException();
109 RunnableFuture<Void> ftask = newTaskFor(task, null);
118 public <T> Future<T> submit(Runnable task, T result) { argument
119 if (task
129 submit(Callable<T> task) argument
[all...]
H A DExecutorCompletionService.java116 QueueingFuture(RunnableFuture<V> task) { argument
117 super(task, null);
118 this.task = task;
120 protected void done() { completionQueue.add(task); }
121 private final Future<V> task; field in class:ExecutorCompletionService.QueueingFuture
124 private RunnableFuture<V> newTaskFor(Callable<V> task) { argument
126 return new FutureTask<V>(task);
128 return aes.newTaskFor(task);
131 private RunnableFuture<V> newTaskFor(Runnable task, argument
178 submit(Callable<V> task) argument
185 submit(Runnable task, V result) argument
[all...]
/openjdk7/jdk/test/java/rmi/reliability/benchmark/bench/rmi/
H A DBenchServer.java67 * Execute given task.
69 Object execute(Task task) throws Exception; argument
H A DBenchServerImpl.java78 * Execute given task.
80 public Object execute(BenchServer.Task task) throws Exception { argument
81 return task.execute();
/openjdk7/jdk/src/share/classes/sun/nio/fs/
H A DCancellable.java32 * Base implementation of a task (typically native) that polls a memory location
34 * task is executed by invoking the {@link runInterruptibly} method defined
63 * task has been cancelled. If this method is not overridden then it
71 * "cancels" the task by writing bits into memory location that it polled
72 * by the task.
83 * Returns the exception thrown by the task or null if the task completed
109 * The task body. This should periodically poll the memory location
115 * Invokes the given task in its own thread. If this (meaning the current)
119 static void runInterruptibly(Cancellable task) throw argument
[all...]
/openjdk7/jdk/src/share/classes/sun/rmi/transport/
H A DDGCAckHandler.java82 private Future<?> task = null; field in class:DGCAckHandler
118 if (objList != null && task == null) {
119 task = scheduler.schedule(new Runnable() {
131 if (task != null) {
132 task.cancel(false);
133 task = null;
/openjdk7/langtools/test/tools/javac/
H A DT6361619.java65 JavacTask task = tool.getTask(out, fm, dl, flags, null, f);
66 MyTaskListener tl = new MyTaskListener(task);
67 task.setTaskListener(tl);
70 task.call();
79 public MyTaskListener(JavacTask task) { argument
80 this.task = task;
85 Trees t = Trees.instance(task);
89 Trees t = Trees.instance(task);
92 JavacTask task; field in class:T6361619.MyTaskListener
[all...]
/openjdk7/langtools/test/tools/javac/api/6557752/
H A DT6557752.java71 static JavacTask task = null; field in class:T6557752
74 task = (JavacTask) compiler.getTask(null, null, null, null, null, List.of(new MyFileObject()));
75 Iterable<? extends CompilationUnitTree> asts = task.parse();
76 task.analyze();
77 trees = Trees.instance(task);
104 Types types = task.getTypes();
119 Types types = task.getTypes();
/openjdk7/langtools/test/tools/javac/api/lib/
H A DToolTester.java41 public JavaCompiler.CompilationTask task = null; field in class:ToolTester
/openjdk7/jaxp/src/com/sun/org/apache/xml/internal/utils/
H A DThreadControllerWrapper.java40 public static void waitThread(Thread worker, Runnable task) argument
43 m_tpool.waitThread(worker, task);
84 * Will get a thread from the pool, execute the task
90 * NEEDSDOC @param task
91 * @param priority if >0 the task will run with the given priority
93 * @return The thread that is running the task, can be used
96 public Thread run(Runnable task, int priority) argument
99 Thread t = new SafeThread(task);
109 * Wait until the task is completed on the worker
113 * NEEDSDOC @param task
117 waitThread(Thread worker, Runnable task) argument
[all...]

Completed in 124 milliseconds

12345