Commit b3d20b573cdf2508ba074bcca110d4576bcd2152

Con Kolivas 2011-07-25T13:55:01

Make the thread restart do a pthread_join after disabling the device, only re-enabling it if we succeed in restarting the thread. Do this from a separate thread so as to not block any other code. This will allow cgminer to continue even if one GPU hangs.