Anton Vayvod
unread,Oct 14, 2010, 3:32:38 PM10/14/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Sanjeev Radhakrishnan, da...@chromium.org, j...@chromium.org, sche...@chromium.org, Alpha Lam, chromium-dev
I need to post tasks between UI and my thread. For UI thread I use BrowserThread. I used it for posting camera tasks to IO thread.
Now for my thread I use its message_loop() checking if it's not NULL. I don't store any pointers to it. The thread object is a member of the ref-counted object that's used in tasks I post as |this| pointer.
Does it seem okay or am I missing something?
That said, the simplest way for me would be to add BrowserThread::VIDEO (at least under #ifdef OS_CHROMEOS) but I'm not convinced that it's necessary to create one more global thread which is used only in one specific place until media/video will want to use it too.