project with multiple threads

Hi all!
I’ve just studied PhAB. I want to build a project with multiple threads. I’ve try but not success. Please help me with an example. Thanks!

start thread: ------- pthread_create();
in this thread: ----- PtEnter() you drawing PtLeave.

If you want a second thread to do GUI activities then in the new thread you should do something like this:

PtEnter
PtSetResource(widget, Pt_ARG_TEXT_STRING, “hello”, 0);
PtLeave

That is about it. Also keep in mind that if you are in callback code you are already entered in the library and usually in the main thread.

Thanks for helping me!