Project

General

Profile

« Previous | Next » 

Revision 7d151b69

Added by Leszek Koltunski over 2 years ago

More debugs to the EffectMessageSender.

View differences:

src/main/java/org/distorted/library/message/EffectMessageSender.java
49 49
  private static volatile boolean mNotify  = false;
50 50
  private static volatile boolean mRunning = false;
51 51

  
52
  private static long mStartTime, mStopTime;
53

  
52 54
///////////////////////////////////////////////////////////////////////////////////////////////////
53 55
   
54 56
  private EffectMessageSender() 
......
60 62

  
61 63
  public static void startSending()
62 64
    {
65
    mStartTime = System.currentTimeMillis();
66

  
63 67
    synchronized(mLock)
64 68
      {
65 69
      mRunning = true;
......
78 82
  
79 83
  public static void stopSending()
80 84
    {
85
    mStopTime = System.currentTimeMillis();
86

  
81 87
    synchronized(mLock)
82 88
      {
83 89
      mRunning = false;
......
143 149

  
144 150
  public static String reportState()
145 151
    {
146
    return "mRunning="+mRunning+" mNotify="+mNotify+" mThis null="+(mThis==null)+" mList elements="+mList.size();
152
    return "mRunning="+mRunning+" mNotify="+mNotify+" mThis null="+(mThis==null)+
153
           " mList elements="+mList.size()+" start time="+mStartTime+" mStopTime="+mStopTime;
147 154
    }
148 155
  }

Also available in: Unified diff