You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

LM-X can be used with multithreaded applications.

You can, by default, access the LM-X API from multiple threads simultaneously. However, this default behavior may not always be sufficient.  

For example, you might have a situation in which one of two threads that call LMX_Checkout() could fail. If you subsequently wish to print out the last error message with LMX_GetErrorMessage(), the results may have been updated by the second LMX_Checkout() call.  

To avoid such cases, you can use your own mutual exclusion to provide the necessary synchronization. 

However, note that simultaneously calling two functions with the same LM-X handle could cause undesired behavior. Also, you should not create multiple LM-X handle instances. Some information will be shared between multiple instances, which can result in undesired side effects.

  • No labels