@@ -238,37 +238,41 @@ void ffInitInstance(FFinstance* instance)
238238 defaultConfig (instance );
239239}
240240
241- static inline void * detectPlasmaThreadMain (void * instance )
241+ #if !defined(__ANDROID__ )
242+
243+ static void * connectDisplayServerThreadMain (void * instance )
242244{
243- ffDetectQt ((FFinstance * )instance );
245+ ffConnectDisplayServer ((FFinstance * )instance );
244246 return NULL ;
245247}
246248
247- static inline void * detectGTK2ThreadMain (void * instance )
249+ #if !defined(__APPLE__ )
250+
251+ static void * detectPlasmaThreadMain (void * instance )
248252{
249- ffDetectGTK2 ((FFinstance * )instance );
253+ ffDetectQt ((FFinstance * )instance );
250254 return NULL ;
251255}
252256
253- static inline void * detectGTK3ThreadMain (void * instance )
257+ static void * detectGTK2ThreadMain (void * instance )
254258{
255- ffDetectGTK3 ((FFinstance * )instance );
259+ ffDetectGTK2 ((FFinstance * )instance );
256260 return NULL ;
257261}
258262
259- static inline void * detectGTK4ThreadMain (void * instance )
263+ static void * detectGTK3ThreadMain (void * instance )
260264{
261- ffDetectGTK4 ((FFinstance * )instance );
265+ ffDetectGTK3 ((FFinstance * )instance );
262266 return NULL ;
263267}
264268
265- static inline void * connectDisplayServerThreadMain (void * instance )
269+ static void * detectGTK4ThreadMain (void * instance )
266270{
267- ffConnectDisplayServer ((FFinstance * )instance );
271+ ffDetectGTK4 ((FFinstance * )instance );
268272 return NULL ;
269273}
270274
271- static inline void * startThreadsThreadMain (void * instance )
275+ static void * startThreadsThreadMain (void * instance )
272276{
273277 pthread_t dsThread ;
274278 pthread_create (& dsThread , NULL , connectDisplayServerThreadMain , instance );
@@ -293,31 +297,27 @@ static inline void* startThreadsThreadMain(void* instance)
293297 return NULL ;
294298}
295299
296- #if !defined(__ANDROID__ ) && !defined(__APPLE__ )
297-
298300void startDetectionThreads (FFinstance * instance )
299301{
300302 pthread_t startThreadsThread ;
301303 pthread_create (& startThreadsThread , NULL , startThreadsThreadMain , instance );
302304 pthread_detach (startThreadsThread );
303305}
304306
305- #elif __APPLE__
306-
307+ #else // !__APPLE__
307308void startDetectionThreads (FFinstance * instance )
308309{
309310 pthread_t startThreadsThread ;
310311 pthread_create (& startThreadsThread , NULL , connectDisplayServerThreadMain , instance );
311312 pthread_detach (startThreadsThread );
312313}
314+ #endif // __APPLE__
313315
314- #else // !__APPLE__
315-
316+ #else // !__ANDROID__
316317void startDetectionThreads (FFinstance * instance )
317318{
318319 FF_UNUSED (instance );
319320}
320-
321321#endif // __ANDROID__
322322
323323static volatile bool ffDisableLinewrap = true;
0 commit comments