[vorbis-dev] Multithreading

Lourens Veen lourens at rainbowdesert.net
Sat Jan 11 06:32:44 PST 2003



On Sat 11 January 2003 15:17, Spork Michael wrote:
> Hi.
> I need to execute a function from within a GUI.
> This seems to be no problem but this function takes about 4
> minutes to finish, which means the application doesn't react at
> all, while the function is running.
> Can I execute a function as a separate Thread, while keeping
> control(e.g. a reference) of it at the same time?
> If not, how do this with a class containing this function?

Ehm, how is this Vorbis-related? Or is the function call one that 
encodes a file?

Well anyway, on UNIX in C with POSIX threads, pthread_create() is 
what you want. Tell more if you want a better answer.

Lourens

-- 
GPG public key: http://home.student.utwente.nl/l.e.veen/lourens.key

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis-dev mailing list