danielmashman
Programmer
Hi All,
I have a borland c++ builder application where I am lauching a thread to manage USB HID communications with an external device. I want to wait a specified amount of time at a point within this thread for the device to be attached. Is there an easy way of setting up a timeout to do this? I could have a for loop with a counter and use Sleep() routine but not sure if this is the best way of doing it.
I apologize in advance for the lack of information but not really sure what extra info to provide. Please ask if neccessary.
I have a borland c++ builder application where I am lauching a thread to manage USB HID communications with an external device. I want to wait a specified amount of time at a point within this thread for the device to be attached. Is there an easy way of setting up a timeout to do this? I could have a for loop with a counter and use Sleep() routine but not sure if this is the best way of doing it.
I apologize in advance for the lack of information but not really sure what extra info to provide. Please ask if neccessary.