threads/timers in photon?

Hi All,

I hope someone can point me in the right direction. I want to display
different views of the same data in different panes.

I’ve set up a non photon server which queues up receive id’s of clients
requesting data and when I receive a timer, I update the data and send
it out to all the waiting connections.

This works fine with non photon clients, but that’s not what I need.

Running a separate thread in a picture module works well until I
actually call PtSetResource. That’s probably the part about photon not
being thread safe.

What is the proper way to get around this. Set up a separate thread and
when it unblocks and I get the new data, set a one shot timer to start a
callback to actually update the pane?

Thanks,

Steve

Hey Steve

Check out the functions PtEnter and PtLeave in the helpviewer.
These functions should allow you to accomplish what you are trying to do.

Thanks
Rodney

Steve Morris <morris@buinea.com> wrote:

Hi All,

I hope someone can point me in the right direction. I want to display
different views of the same data in different panes.

I’ve set up a non photon server which queues up receive id’s of clients
requesting data and when I receive a timer, I update the data and send
it out to all the waiting connections.

This works fine with non photon clients, but that’s not what I need.

Running a separate thread in a picture module works well until I
actually call PtSetResource. That’s probably the part about photon not
being thread safe.

What is the proper way to get around this. Set up a separate thread and
when it unblocks and I get the new data, set a one shot timer to start a
callback to actually update the pane?

Thanks,

Steve