rob_cole_2221866's profile

4.5K Messages


76.3K Points

Thu, Sep 15, 2011 1:25 AM


Lightroom SDK: add wait 'n validate param to some functions.

There are several functions that initiate things that won't be complete by the time the function returns, i.e. they get done asynchronously by Lightroom in the background, some examples:


For functions like these, it would be good to be able to pass a flag to delay return until settling is complete and a meaningful status can be provided.

I have too much code in my plugins to initiate a function, sleep, see if its settled yet, initiate again, sleep, see if its settled yet, until it "takes", or I give up.

I would prefer to be able to offload the wait-and-validate to Lightroom.




704 Messages


8.5K Points

10 y ago

Mmmm. Busy waits are so awesome.