Re: [e-users] efl and c++

Carsten Haitzler <[email protected]>
Newsgroups gmane.comp.window-managers.enlightenment.user
Message-ID <[email protected]>
On Fri, 10 Nov 2023 09:22:51 +0100 Pierre Couderc via enlightenment-users
<[email protected]> said:

> 
> Le 11/8/23 à 21:02, Carsten Haitzler a écrit :
> > On Wed, 8 Nov 2023 09:53:22 +0100 Pierre Couderc via enlightenment-users
> > <[email protected]>  said:
> >
> >> Is there a topic to introduce efl under C++.
> >>
> >> I have  a problem with "hello world" in Unified C API
> >>
> >> If I compile
> >> https://www.enlightenment.org/develop/tutorials/c/hello-world-gui.md  
> >> with C++ (linux), all is fine.
> >>
> >> Il I had a thread, it fails with nothing displayed  :
> >>
> >> void start()
> >> {
> >>
> >>       while(1)
> >>       {
> >>           sleep(1);
> >>       }
> >>       return;
> >> }
> >> //******************************************************  main
> >> *******************************************************
> >> EAPI_MAIN void
> >> efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
> >> {
> >>       _gui_setup();
> >>       thread wait(start);
> > ^^^ this here blocks. the main loop can't run and proc ess events
> 
> OK, I understand that.
> 
> So cpp is not compatible /a priori/ with efl.

no. this has nothing to do with c or c++ ... it's the whole point that you
block the main loop. don't do that.

> This is the first sense of my post. Is there some topic introducing what 
> can be used or not used ?
> 
> 
> _______________________________________________
> enlightenment-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
Carsten Haitzler - [email protected]



_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.