/// <since_tizen> 3 </since_tizen>
public Timer(uint milliSec) : this(Interop.Timer.Timer_New(milliSec), true)
{
+ if (Thread.CurrentThread.ManagedThreadId != 1)
+ {
+ Tizen.Log.Error("NUI", "current threadID : " + Thread.CurrentThread.ManagedThreadId);
+
+ StackTrace st = new StackTrace(true);
+ for (int i = 0; i < st.FrameCount; i++)
+ {
+ StackFrame sf = st.GetFrame(i);
+ Tizen.Log.Error("NUI", " Method " + sf.GetMethod());
+ }
+ }
+
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
NUILog.Debug($"(0x{swigCPtr.Handle:X}) Timer({milliSec}) Constructor!");
{
add
{
+ if (Thread.CurrentThread.ManagedThreadId != 1)
+ {
+ Tizen.Log.Error("NUI", "current threadID : " + Thread.CurrentThread.ManagedThreadId);
+
+ StackTrace st = new StackTrace(true);
+ for (int i = 0; i < st.FrameCount; i++)
+ {
+ StackFrame sf = st.GetFrame(i);
+ Tizen.Log.Error("NUI", " Method " + sf.GetMethod());
+ }
+ }
+
+
if (_timerTickEventHandler == null && disposed == false)
{
TickSignal().Connect(_timerTickCallbackOfNative);
}
remove
{
+ if (Thread.CurrentThread.ManagedThreadId != 1)
+ {
+ Tizen.Log.Error("NUI", "current threadID : " + Thread.CurrentThread.ManagedThreadId);
+
+ StackTrace st = new StackTrace(true);
+ for (int i = 0; i < st.FrameCount; i++)
+ {
+ StackFrame sf = st.GetFrame(i);
+ Tizen.Log.Error("NUI", " Method " + sf.GetMethod());
+ }
+ }
+
_timerTickEventHandler -= value;
if (_timerTickEventHandler == null && TickSignal().Empty() == false)
{
{
get
{
+ if (Thread.CurrentThread.ManagedThreadId != 1)
+ {
+ Tizen.Log.Error("NUI", "current threadID : " + Thread.CurrentThread.ManagedThreadId);
+
+ StackTrace st = new StackTrace(true);
+ for (int i = 0; i < st.FrameCount; i++)
+ {
+ StackFrame sf = st.GetFrame(i);
+ Tizen.Log.Error("NUI", " Method " + sf.GetMethod());
+ }
+ }
+
return GetInterval();
}
set
{
+ if (Thread.CurrentThread.ManagedThreadId != 1)
+ {
+ Tizen.Log.Error("NUI", "current threadID : " + Thread.CurrentThread.ManagedThreadId);
+
+ StackTrace st = new StackTrace(true);
+ for (int i = 0; i < st.FrameCount; i++)
+ {
+ StackFrame sf = st.GetFrame(i);
+ Tizen.Log.Error("NUI", " Method " + sf.GetMethod());
+ }
+ }
+
SetInterval(value);
}
}
/// <since_tizen> 3 </since_tizen>
protected override void Dispose(DisposeTypes type)
{
+ if (Thread.CurrentThread.ManagedThreadId != 1)
+ {
+ Tizen.Log.Error("NUI", "current threadID : " + Thread.CurrentThread.ManagedThreadId);
+
+ StackTrace st = new StackTrace(true);
+ for (int i = 0; i < st.FrameCount; i++)
+ {
+ StackFrame sf = st.GetFrame(i);
+ Tizen.Log.Error("NUI", " Method " + sf.GetMethod());
+ }
+ }
+
NUILog.Debug($"(0x{swigCPtr.Handle:X}) Timer.Dispose(type={type}, disposed={disposed})");
if (this != null && _timerTickCallbackDelegate != null)