Thread programming

uEye Camera Manual Version 4.90


Thread programming

In general, the uEye API is thread-safe. This means that the uEye API can be accessed by multiple threads simultaneously. Simultaneous attempts to call the same function are recognized and prevented by the driver.

hint_attention

Note on using USB cameras under Windows

The following events require a Windows message loop. This message loop has to be executed by the thread that loads the uEye API. The message loop is usually provided by the application window. In some cases, the message loop might not be created automatically (e.g. in console applications). In this case you will need to implement the message loop yourself.

This applies to the following uEye events:

•IS_SET_EVENT_REMOVE

•IS_SET_EVENT_REMOVAL

•IS_SET_EVENT_DEVICE_RECONNECTED

•IS_SET_EVENT_NEW_DEVICE

If no message loop exists, a USB camera will not be automatically detected after reconnecting.

Suggestion for improvement? Send us your short Feedback on this chapter. Thank you very much!
For technical questions please contact your local distributor or use the support form on our website.


© 2017 IDS Imaging Development Systems GmbH
http://en.ids-imaging.com