[E-devel] [Question][Ecore_Thread] active thread count is -1?

7 views
Skip to first unread message

Sohyun Kim

unread,
Mar 26, 2012, 5:01:53 AM3/26/12
to enlighten...@lists.sourceforge.net
Hi
I have a question about Ecore_Thread.

When I added Ecore_Thread using ecore_thread_feedback_run() while setting
try_no_queue parameter to EINA_TRUE,
I found active thread count is 0.
However, after the thread is ended, the active count became -1.
I think the thread should not be counted at all because try_no_queue is set.
Is it right?

Regards, Sohyun

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
enlightenment-devel mailing list
enlighten...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Michael Blumenkrantz

unread,
Mar 28, 2012, 11:15:22 PM3/28/12
to Enlightenment developer list, anna10...@samsung.com, Cedric BAIL
On Mon, 26 Mar 2012 18:01:53 +0900
Sohyun Kim <anna10...@samsung.com> wrote:

> Hi
> I have a question about Ecore_Thread.
>
> When I added Ecore_Thread using ecore_thread_feedback_run() while setting
> try_no_queue parameter to EINA_TRUE,
> I found active thread count is 0.
> However, after the thread is ended, the active count became -1.
> I think the thread should not be counted at all because try_no_queue is set.
> Is it right?
>
> Regards, Sohyun

hmm this is strange since threads created using ecore_thread_feedback_run()
with try_no_queue enabled are NOT counted, and the thread count will not be
decremented when such a thread ends. can you perhaps provide more information
on this?

Sanjeev BA

unread,
Mar 28, 2012, 11:20:03 PM3/28/12
to Enlightenment developer list
We do decrement the count while it is no_queue as well.

Carsten Haitzler

unread,
Mar 29, 2012, 7:10:26 AM3/29/12
to Enlightenment developer list, Sohyun Kim
On Mon, 26 Mar 2012 18:01:53 +0900 Sohyun Kim <anna10...@samsung.com> said:

> Hi
> I have a question about Ecore_Thread.
>
> When I added Ecore_Thread using ecore_thread_feedback_run() while setting
> try_no_queue parameter to EINA_TRUE,
> I found active thread count is 0.
> However, after the thread is ended, the active count became -1.
> I think the thread should not be counted at all because try_no_queue is set.
> Is it right?
>
> Regards, Sohyun

no no. thats not right... i think i just fixed it though... commit 69741

--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) ras...@rasterman.com

Reply all
Reply to author
Forward
0 new messages