/[svn]/gigedit/trunk/src/gigedit/MacHelper.h
ViewVC logotype

Contents of /gigedit/trunk/src/gigedit/MacHelper.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2474 - (show annotations) (download) (as text)
Sun Sep 15 18:16:21 2013 UTC (5 years, 8 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 962 byte(s)
* Mac OS X: try to launch the GUI on the process's "main" thread

1 /*
2 Copyright (c) 2013 Christian Schoenebeck
3
4 This file is part of "gigedit" and released under the terms of the
5 GNU General Public License version 2.
6 */
7
8 #ifndef GIGEDIT_MAC_HELPER
9 #define GIGEDIT_MAC_HELPER
10
11 #if defined(__cplusplus)
12 extern "C" {
13 #endif // __cplusplus
14
15 /**
16 * Run the given C callback function @a fn on the process's main thread. This
17 * function will return immediately. The callback function will be scheduled
18 * for asynchronous execution. In general this function will only succeed if
19 * if there is a CoreFoundation event loop established and running in this
20 * process, if not, the callback function will never be executed!
21 *
22 * @param fn - callback function to be executed on main thread
23 * @param info - arbitrary pointer which will be passed to the callback call
24 */
25 void macHelperRunCFuncOnMainThread(void (*fn)(void* info), void* info);
26
27 #if defined(__cplusplus)
28 }
29 #endif // __cplusplus
30
31 #endif // GIGEDIT_MAC_HELPER

  ViewVC Help
Powered by ViewVC