PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

class CGapiApplicationMT - Threads

Hello

If I want to write a multithreaded gapidraw app, should I be using CGapiApplicationMT instead of CGapiApplication. If so why?

I would like to have a thread in my app which continually loads thumbnails. Is it not possible to use threads with CGapiApplication. What are the dangers?

How would I use threads with CGapiApplicationMT. Is there a GapiDraw sample somewhere showing how to use this?

Thanks
Should I be using CGapiApplicationMT instead of CGapiApplication


No. CGapiApplicationMT will be removed from the next distribution and added as a free downloadable file from the web page to avoid confusion.

Is it not possible to use threads with CGapiApplication


Yes, it is possible to use threads with GapiApplication. Just google on Win32 worker threads and thread synchronization. It's not that difficult.