[c-host] updated to use new LGMP API to increase the timeout

This commit is contained in:
Geoffrey McRae 2020-01-10 20:04:46 +11:00
parent c92312a6c6
commit c2a15ad89d
3 changed files with 19 additions and 5 deletions

2
LGMP

@ -1 +1 @@
Subproject commit f37dba4a4a539d6ba8ad7cc6a3230b6131b49eb0
Subproject commit 26d9f9a59e837a3ea671ebf3b2b0549630ed5f11

View File

@ -1 +1 @@
B1-72-g3253e7fd10+1
B1-73-gc92312a6c6+1

View File

@ -39,8 +39,22 @@ Place, Suite 330, Boston, MA 02111-1307 USA
#define ALIGN_DN(x) ((uintptr_t)(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_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))
@ -390,13 +404,13 @@ int app_main(int argc, char * argv[])
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));
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));
goto fail;