Home > C: Programming > Programming Note > History back  Previous chapter  Next chapter  Print  

Thread Programming

uEye Camera Manual Version 3.80

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.

Hinweis

Note on multi-threading

We recommend that you call the following functions from one thread per camera in order to avoid unpredictable behavior of the application.

Achtung

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_REMOVED
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!


© 2010 IDS Imaging Development Systems GmbH
http://www.ids-imaging.com