FLTK logo

[fltk.general] Way to determine if I am running on main fltk's thread

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Way to determine if I am running on main fltk's thread Gonzalo Garramuño Feb 28, 2021  
  Is there a function to determine whether a piece of code is running on the main fltk's thread?

Something like:


if ( Fl::main_thread() )
{
  win.show();
}
else
{
// do nothing...
}

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/0f8d07fb-044c-4560-78eb-1e068a798885%40gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.