PxLoadImage thread safety

As I’ve read in the docs, photon is generally thread unsafe.
But this function is one of the function that could benefit
of being thread-safe.

Actually my application analizes a sequence of images and shows the
results on the screen.
Another thread works like a buffer accumulator: preloads the images
from the disk. But since I want to benefit of having an smp system,
actually this thread can’t use PxLoadImage to fetch the data and I’ve
to write a similar function that does the same thing.

Can I hope to see this function thread-safe in some future?

Regards


Wave++

Hello Wave++

There isn’t really any plans to make PxLoadImage thread safe, but you
could write a wrapper function that makes it thread safe by using the
PtEnter and PtLeave calls around the PxLoadImage call.

Thanks
Rodney

Wave++ <wavexx@apexmail.com> wrote:

As I’ve read in the docs, photon is generally thread unsafe.
But this function is one of the function that could benefit
of being thread-safe.

Actually my application analizes a sequence of images and shows the
results on the screen.
Another thread works like a buffer accumulator: preloads the images
from the disk. But since I want to benefit of having an smp system,
actually this thread can’t use PxLoadImage to fetch the data and I’ve
to write a similar function that does the same thing.

Can I hope to see this function thread-safe in some future?

Regards


Wave++

Gui Group <gui@qnx.com> wrote:

Hello Wave++

There isn’t really any plans to make PxLoadImage thread safe, but you
could write a wrapper function that makes it thread safe by using the
PtEnter and PtLeave calls around the PxLoadImage call.

You haven’t read my post. I need to use this function for a buffer
accumulaor on an smp system. I can’t simply ignore other cpus.
Actually I need to use a propieraty function that is thread safe.

Functions that does consistent operations and do not draws on screen
SHOULD be thread safe (loading files, performing operations on memory
bitmaps and so on)

Thanks
Rodney

Wave++ <> wavexx@apexmail.com> > wrote:
As I’ve read in the docs, photon is generally thread unsafe.
But this function is one of the function that could benefit
of being thread-safe.

Actually my application analizes a sequence of images and shows the
results on the screen.
Another thread works like a buffer accumulator: preloads the images
from the disk. But since I want to benefit of having an smp system,
actually this thread can’t use PxLoadImage to fetch the data and I’ve
to write a similar function that does the same thing.

Can I hope to see this function thread-safe in some future?

Regards


Wave++


Wave++