net.sf.jack4j
Class JackClientThread

java.lang.Object
  extended by net.sf.jack4j.JackClientThread

public class JackClientThread
extends java.lang.Object

Allows operations on the thread associated with Jack client.

Author:
repa

Method Summary
 boolean acquireRealTimeScheduling(int priority)
          Attempts to enable realtime scheduling for a thread.
 long clientThreadId()
          Returns client thread ID, packed as long.
 void dropRealTimeScheduling()
          Drop realtime scheduling for a thread.
 JackClient getJackClient()
           
 java.lang.Thread getThread()
          Returns the Java Thread that represents Jack POSIX client thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJackClient

public JackClient getJackClient()
Returns:
the jackClient

getThread

public java.lang.Thread getThread()
Returns the Java Thread that represents Jack POSIX client thread.


clientThreadId

public long clientThreadId()
Returns client thread ID, packed as long.


acquireRealTimeScheduling

public boolean acquireRealTimeScheduling(int priority)
                                  throws JackException
Attempts to enable realtime scheduling for a thread.

On some systems that may require special privileges.

Parameters:
priority - requested priority
Returns:
true if successful, false if the process lacks realtime privileges
Throws:
JackException - if other error occurred

dropRealTimeScheduling

public void dropRealTimeScheduling()
                            throws JackException
Drop realtime scheduling for a thread.

Throws:
JackException


Copyright © 2008 Ondrej Par. All Rights Reserved.