[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Displaying live video -- how to notify main loop from another thread
From: |
Marek Peca |
Subject: |
Re: Displaying live video -- how to notify main loop from another thread? |
Date: |
Fri, 9 Jul 2010 14:56:47 +0200 (CEST) |
Hello,
On Fri, 9 Jul 2010, address@hidden wrote:
Hi!
This could help:
http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/performSelectorOnMainThread:withObject:waitUntilDone:
thank you for your really quick answer. I will look at
performSelectorOnMainThread, it sounds well.
Please, tell me: is it needed to create threads using GNUstep thread API,
or may I use ordinary glibc pthreads? The whole application is written in
plain C, requiring about 5 threads (2 camera threads, slower computation,
disk file output, GUI) with different priorities, including a setting of
SCHED_FIFO etc. I would really like to avoid GNUstep API for threads and
use plain POSIX threads and to use GNUstep only for the GUI.
Many thanks,
Marek
Re: Displaying live video -- how to notify main loop from another thread?, David Chisnall, 2010/07/09