diff options
author | WonYoung Choi <wy80.choi@samsung.com> | 2016-10-28 13:56:53 +0900 |
---|---|---|
committer | WonYoung Choi <wy80.choi@samsung.com> | 2016-10-28 14:39:35 +0900 |
commit | 7f15b8af3b17f40a28a43a96448ac6b92f456ceb (patch) | |
tree | 7697563704a7600e1df515aa1d674ccc38babd17 /ElmSharp/Interop | |
parent | 5bc682ee2438cce6ac7c7d7ef4b76a7b8569e0ef (diff) | |
download | elm-sharp-7f15b8af3b17f40a28a43a96448ac6b92f456ceb.tar.gz elm-sharp-7f15b8af3b17f40a28a43a96448ac6b92f456ceb.tar.bz2 elm-sharp-7f15b8af3b17f40a28a43a96448ac6b92f456ceb.zip |
Add EcoreMainLoop.IsMainThread to check the main loop thread
EcoreMainLoop.IsMainThread returns true when the main loop is running
in current thread.
Change-Id: I1a189c6fa233fc7be4f14b8a2c4091852ddbe172
Diffstat (limited to 'ElmSharp/Interop')
-rw-r--r-- | ElmSharp/Interop/Interop.Eina.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ElmSharp/Interop/Interop.Eina.cs b/ElmSharp/Interop/Interop.Eina.cs new file mode 100644 index 0000000..107d4c3 --- /dev/null +++ b/ElmSharp/Interop/Interop.Eina.cs @@ -0,0 +1,19 @@ +// Copyright 2016 by Samsung Electronics, Inc., +// +// This software is the confidential and proprietary information +// of Samsung Electronics, Inc. ("Confidential Information"). You +// shall not disclose such Confidential Information and shall use +// it only in accordance with the terms of the license agreement +// you entered into with Samsung. + +using System; +using System.Runtime.InteropServices; + +internal static partial class Interop +{ + internal static partial class Eina + { + [DllImport(Libraries.Eina)] + internal static extern bool eina_main_loop_is(); + } +} |