Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-26 Thread The Rasterman
On Mon, 26 Sep 2016 14:27:01 -0300 Gustavo Sverzut Barbieri said: > On Mon, Sep 26, 2016 at 4:28 AM, Jean-Philippe André > wrote: > > But still, despite its predictable behaviour, cancellation is hard to > > handle properly. The guys from Android chose not

Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-26 Thread Gustavo Sverzut Barbieri
On Mon, Sep 26, 2016 at 4:28 AM, Jean-Philippe André wrote: > But still, despite its predictable behaviour, cancellation is hard to > handle properly. The guys from Android chose not to support it and use > alternative solutions like select instead of just read. > > So I still

Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-26 Thread Jean-Philippe André
Hey, On 24 September 2016 at 12:53, Carsten Haitzler wrote: > On Wed, 14 Sep 2016 01:55:42 -0300 Gustavo Sverzut Barbieri > said: > > as per the thread. i dislike this due to lack of portability and due to the > major amounts of complexity there is in

Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-23 Thread The Rasterman
On Wed, 14 Sep 2016 01:55:42 -0300 Gustavo Sverzut Barbieri said: as per the thread. i dislike this due to lack of portability and due to the major amounts of complexity there is in having a premeptable cacnel that can just interrupt ANY code ANYWHERE. imagine you are inside

Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-21 Thread Gustavo Sverzut Barbieri
On Wed, Sep 21, 2016 at 3:39 AM, Jean-Philippe André wrote: > Hi Gustavo, > > On 21 September 2016 at 07:11, Carsten Haitzler > wrote: > >> On Tue, 20 Sep 2016 12:17:50 -0300 Gustavo Sverzut Barbieri >> said: >> >> > On Tue, Sep 20,

Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-21 Thread Jean-Philippe André
Hi Gustavo, On 21 September 2016 at 07:11, Carsten Haitzler wrote: > On Tue, 20 Sep 2016 12:17:50 -0300 Gustavo Sverzut Barbieri > said: > > > On Tue, Sep 20, 2016 at 11:18 AM, Carsten Haitzler > > > wrote: > > > On Tue, 20 Sep

Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-20 Thread The Rasterman
On Tue, 20 Sep 2016 12:17:50 -0300 Gustavo Sverzut Barbieri said: > On Tue, Sep 20, 2016 at 11:18 AM, Carsten Haitzler > wrote: > > On Tue, 20 Sep 2016 08:16:21 -0300 Gustavo Sverzut Barbieri > > said: > > > >> On Tue, Sep 20, 2016

Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-20 Thread The Rasterman
On Tue, 20 Sep 2016 17:51:15 +0900 Jean-Philippe André said: > Hi Gustavo, > > On 14 September 2016 at 13:55, Gustavo Sverzut Barbieri > wrote: > > > HEADS UP -- BINDINGS: > > > > If you wish to expose the new "cancellable" property, or cope with > >

Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-20 Thread Gustavo Sverzut Barbieri
On Tue, Sep 20, 2016 at 11:18 AM, Carsten Haitzler wrote: > On Tue, 20 Sep 2016 08:16:21 -0300 Gustavo Sverzut Barbieri > said: > >> On Tue, Sep 20, 2016 at 5:51 AM, Jean-Philippe André >> wrote: >> > Hi Gustavo, >> > >> > On 14

Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-20 Thread The Rasterman
On Tue, 20 Sep 2016 08:16:21 -0300 Gustavo Sverzut Barbieri said: > On Tue, Sep 20, 2016 at 5:51 AM, Jean-Philippe André > wrote: > > Hi Gustavo, > > > > On 14 September 2016 at 13:55, Gustavo Sverzut Barbieri > > wrote: > > > >> HEADS

Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-20 Thread Gustavo Sverzut Barbieri
On Tue, Sep 20, 2016 at 5:51 AM, Jean-Philippe André wrote: > Hi Gustavo, > > On 14 September 2016 at 13:55, Gustavo Sverzut Barbieri > wrote: > >> HEADS UP -- BINDINGS: >> >> If you wish to expose the new "cancellable" property, or cope with >> naughty

Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-20 Thread Jean-Philippe André
Hi Gustavo, On 14 September 2016 at 13:55, Gustavo Sverzut Barbieri wrote: > HEADS UP -- BINDINGS: > > If you wish to expose the new "cancellable" property, or cope with > naughty users or 3rd party deps that may call > pthread_setcancelstate(PTHREAD_CANCEL_ENABLE), please

Re: [E-devel] [EGIT] [core/efl] master 01/01: eina/ecore: allow threads to be canceled, use in ecore_con.

2016-09-13 Thread Gustavo Sverzut Barbieri
HEADS UP -- BINDINGS: If you wish to expose the new "cancellable" property, or cope with naughty users or 3rd party deps that may call pthread_setcancelstate(PTHREAD_CANCEL_ENABLE), please register your cleanup functions with: EINA_THREAD_CLEANUP_PUSH(cb, ctx); // will call cb() on