Windows : Turn the process in high priority when the USB HxC Floppy Emulator is detected. Fix most of the Sync lost events.

git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/libusbhxcfe/trunk@2446 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69
This commit is contained in:
Jean-François DEL NERO
2021-01-19 23:25:28 +00:00
parent c6a434cb27
commit e5f6790f28
@@ -49,6 +49,10 @@
#include <stdint.h>
#ifdef WIN32
#include <windows.h>
#endif
//#define DEBUGVB 1
#include "internal_libhxcfe.h"
@@ -521,6 +525,10 @@ int32_t ftdichiplistener(HXCFE* floppycontext,USBHXCFE * hw_context)
}while(init_failed);
#ifdef WIN32
SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
#endif
// detection terminee
// on rentre dans la boucle de fonctionnement
// normal