1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-29 16:04:33 +00:00

Pthread cancel state should be set to disable on usb DEVLOCK.

This commit is contained in:
Con Kolivas 2013-06-17 10:30:00 +10:00
parent 6d8d44c233
commit 2eb6d35795

View File

@ -1465,7 +1465,7 @@ struct cgpu_info *usb_free_cgpu_devlock(struct cgpu_info *cgpu, bool free_devloc
* the thread Cancelability unrestored
*/
#define DEVLOCK(cgpu, _pth_state) do { \
pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &_pth_state); \
pthread_setcanceltype(PTHREAD_CANCEL_DISABLE, &_pth_state); \
wr_lock(cgpu->usbinfo.devlock); \
} while (0)