mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 04:57:54 +00:00
[c-host] updated to use new LGMP API to increase the timeout
This commit is contained in:
parent
c92312a6c6
commit
c2a15ad89d
3 changed files with 19 additions and 5 deletions
2
LGMP
2
LGMP
|
@ -1 +1 @@
|
||||||
Subproject commit f37dba4a4a539d6ba8ad7cc6a3230b6131b49eb0
|
Subproject commit 26d9f9a59e837a3ea671ebf3b2b0549630ed5f11
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
B1-72-g3253e7fd10+1
|
B1-73-gc92312a6c6+1
|
|
@ -39,8 +39,22 @@ Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#define ALIGN_DN(x) ((uintptr_t)(x) & ~0x7F)
|
#define ALIGN_DN(x) ((uintptr_t)(x) & ~0x7F)
|
||||||
#define ALIGN_UP(x) ALIGN_DN(x + 0x7F)
|
#define ALIGN_UP(x) ALIGN_DN(x + 0x7F)
|
||||||
|
|
||||||
#define LGMP_Q_POINTER_LEN 20
|
|
||||||
#define LGMP_Q_FRAME_LEN 2
|
#define LGMP_Q_FRAME_LEN 2
|
||||||
|
#define LGMP_Q_POINTER_LEN 20
|
||||||
|
|
||||||
|
static const struct LGMPQueueConfig FRAME_QUEUE_CONFIG =
|
||||||
|
{
|
||||||
|
.queueID = LGMP_Q_FRAME,
|
||||||
|
.numMessages = LGMP_Q_FRAME_LEN,
|
||||||
|
.subTimeout = 1000
|
||||||
|
};
|
||||||
|
|
||||||
|
static const struct LGMPQueueConfig POINTER_QUEUE_CONFIG =
|
||||||
|
{
|
||||||
|
.queueID = LGMP_Q_POINTER,
|
||||||
|
.numMessages = LGMP_Q_POINTER_LEN,
|
||||||
|
.subTimeout = 1000
|
||||||
|
};
|
||||||
|
|
||||||
#define MAX_POINTER_SIZE (sizeof(KVMFRCursor) + (128 * 128 * 4))
|
#define MAX_POINTER_SIZE (sizeof(KVMFRCursor) + (128 * 128 * 4))
|
||||||
|
|
||||||
|
@ -390,13 +404,13 @@ int app_main(int argc, char * argv[])
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((status = lgmpHostQueueNew(app.lgmp, LGMP_Q_FRAME, LGMP_Q_FRAME_LEN, &app.frameQueue)) != LGMP_OK)
|
if ((status = lgmpHostQueueNew(app.lgmp, FRAME_QUEUE_CONFIG, &app.frameQueue)) != LGMP_OK)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("lgmpHostQueueCreate Failed (Frame): %s", lgmpStatusString(status));
|
DEBUG_ERROR("lgmpHostQueueCreate Failed (Frame): %s", lgmpStatusString(status));
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((status = lgmpHostQueueNew(app.lgmp, LGMP_Q_POINTER, LGMP_Q_POINTER_LEN, &app.pointerQueue)) != LGMP_OK)
|
if ((status = lgmpHostQueueNew(app.lgmp, POINTER_QUEUE_CONFIG, &app.pointerQueue)) != LGMP_OK)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("lgmpHostQueueNew Failed (Pointer): %s", lgmpStatusString(status));
|
DEBUG_ERROR("lgmpHostQueueNew Failed (Pointer): %s", lgmpStatusString(status));
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
Loading…
Reference in a new issue