On Sun, Aug 27, 2017 at 5:19 AM, Vincent Torri <[email protected]> wrote:
> hey
>
> some notes about Windows:
>
> * polling is mainly done with select() (for sockets) and the Wait*
> functions.  There are others ways to poll but they are the main
> functions for that task. Maybe this can be added in the wiki

well, nobody is supposed to use those directly, rather use EFL
primitives such as the main loop. Actually, although Eina_Future and
Eina_Promise are done in Eina, there is no scheduler/poller in it,
this must be provided externally and currently the only one doing it
is Ecore -- efl_loop_future_scheduler_get(loop).



> * about eina_future_cb_console(), it must work with the Windows
> console (used also by MSYS1, with I/O redirections) and mintty (used
> also by the cygwin terminal and MSYS2, with pipes). I have managed
> both printing in eina_log. I think that this should (must) be
> supported for your implementation.

maybe "console" was a dubious word, it's just calling printf() :-)
mostly targeted at debugging/logging, we can even add a variant that
uses eina_log, domains and levels but I'll wait for some need to
arise.

we called it "console" after JavaScript patterns such as:

   bla_future().then(x => console.log("got x:", x));

which is a single line in JS but would be multiple in C. With our code
it becomes:

  eina_future_chain(bla_future(), eina_future_cb_console("got x:"));

as simple ;-)



-- 
Gustavo Sverzut Barbieri
--------------------------------------
Mobile: +55 (16) 99354-9890

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to