mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[c-host] updated to use new LGMP API to increase the timeout
This commit is contained in:
parent
c92312a6c6
commit
c2a15ad89d
2
LGMP
2
LGMP
@ -1 +1 @@
|
|||||||
Subproject commit f37dba4a4a539d6ba8ad7cc6a3230b6131b49eb0
|
Subproject commit 26d9f9a59e837a3ea671ebf3b2b0549630ed5f11
|
@ -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 New Issue
Block a user