Exemple #1
0
  public static int addTimer(long tdelay, long count, TIMER_HANDLER_TYPE handler) {
    int handlerNum = ++handlerNumber;
    String hashKey = Integer.toString(handlerNum);

    timerHashTable.put(handler.getClass().getName(), hashKey);
    timerHashTable.put(hashKey, handler);

    return IPC_addTimer(tdelay, count, handlerNum);
  }
Exemple #2
0
 public static int removeTimer(TIMER_HANDLER_TYPE handler) {
   return removeTimer(handler.getClass());
 }