⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msgqueue.h

📁 一个任天堂掌上游戏机NDS的源代码
💻 H
字号:
/*************************************************************************** DSemu - The Next Generation                                             ** User interface: Event queue entry definition [msgqueue.h]               ** Copyright Imran Nazar, 2005; released under the BSD public licence.     ***************************************************************************/#ifndef __MSGQUEUE_H_#define __MSGQUEUE_H_#include <queue>#include "datadefs.h"#include "events.h"// Essentially, this is just a wrapper on a timestamp/callback struct,// to make it all shiny and pretty.class EventMsg {    private:        uint64_t timestamp;    // Event timestamp	int type;        vfptr func;            // Callback for this event	void *userdata;        int debug;             // Do we update all the statuses off it?    public:	EventMsg() { timestamp=INT_MAX; type=EVENT_NULL; func=NULL; userdata=NULL; debug=0; }        EventMsg(uint64_t t, int typ, vfptr f, void *dat, int dbg) { timestamp=t; type=typ; func=f; userdata=dat; debug=dbg; }		uint64_t getTime() const { return timestamp; }	int getType() { return type; }        vfptr getFunc() { return func; }	void *getData() { return userdata; }	int getDebug() { return debug; }		void setTime(uint64_t t) { timestamp=t; }	void callFunc() { func(userdata); }};#endif//__MSGQUEUE_H_/*** EOF: msgqueue.h *****************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -