uint8 i_vos_dev_ioctl(BYTE ThreadID, VOS_HANDLE h, void* cb) { uint8 Value; CallVOS(ThreadID); Value = vos_dev_ioctl(h, cb); ThreadRunning(ThreadID); return Value; }
uint8 i_vos_dev_write(BYTE ThreadID, VOS_HANDLE h, BYTE* buffer, WORD len, WORD* written) { uint8 Value; CallVOS(ThreadID); Value = vos_dev_write(h, buffer, len, written); ThreadRunning(ThreadID); return Value; }
uint8 i_vos_dev_read(BYTE ThreadID, VOS_HANDLE h, BYTE* buffer, WORD len, WORD* read) { uint8 Value; CallVOS(ThreadID); Value = vos_dev_read(h, buffer, len, read); ThreadRunning(ThreadID); return Value; }
// Declare the VOS calls that I use with surrounding instrumentation uint8 i_vos_delay_msecs(BYTE ThreadID, uint16 ms) { uint8 Value; CallVOS(ThreadID); Value = vos_delay_msecs(ms); ThreadRunning(ThreadID); return Value; }
void dCacheMainWindow::init() { /** * Initialization of the QThread that handles dCache operations (Check, Listing and Copy) * Connection of the different signals of the Thread to GUI slots * emit the configuration of the directories to the QThread */ m_tools = new dCacheTools(); connect(this, SIGNAL(Configure_dCacheTool(QString, QString, QString, int, bool)), m_tools, SLOT(Configure(QString, QString, QString, int, bool))); connect(m_tools, SIGNAL(log(QString,QString)), m_logger, SLOT(Log(QString,QString))); //Direct Connection to receive the signal before the end of the QThread connect(m_tools, SIGNAL(finished()), this, SLOT(ThreadStopped()), Qt::DirectConnection); connect(m_tools, SIGNAL(started()), this, SLOT(ThreadRunning()), Qt::DirectConnection); emit Configure_dCacheTool(InputDir, BaseDir, OutputDir, type, isSingleFile); }
void i_vos_signal_semaphore(BYTE ThreadID, vos_semaphore_t* s) { CallVOS(ThreadID); vos_signal_semaphore(s); ThreadRunning(ThreadID); }
void i_vos_lock_mutex(BYTE ThreadID, vos_mutex_t* m) { CallVOS(ThreadID); vos_lock_mutex(m); ThreadRunning(ThreadID); }