diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-09-13 20:09:32 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-09-20 10:25:16 +0200 |
commit | f599cd2226ecebe925db4c88c448c1dcda926748 (patch) | |
tree | 5f786e6f28bac1fead8d2e1bc31d212c634f1df6 | |
parent | c42f48817779b4483d1ce6b2dea37b751a165d22 (diff) |
Fixed up cmd_sem use
-rw-r--r-- | display/res.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/display/res.c b/display/res.c index 8b276bb..379ba86 100644 --- a/display/res.c +++ b/display/res.c @@ -588,13 +588,13 @@ void PushDrawable(PDev *pdev, QXLDrawable *drawable) { QXLCommand *cmd; - EngAcquireSemaphore(pdev->Res->cmd_sem); \ + EngAcquireSemaphore(pdev->Res->cmd_sem); WaitForCmdRing(pdev); cmd = SPICE_RING_PROD_ITEM(pdev->cmd_ring); cmd->type = QXL_CMD_DRAW; cmd->data = PA(pdev, drawable, pdev->main_mem_slot); PUSH_CMD(pdev); - EngReleaseSemaphore(pdev->Res->cmd_sem); \ + EngReleaseSemaphore(pdev->Res->cmd_sem); } static QXLSurfaceCmd *GetSurfaceCmd(PDev *pdev) @@ -627,13 +627,13 @@ void PushSurfaceCmd(PDev *pdev, QXLSurfaceCmd *surface_cmd) { QXLCommand *cmd; - EngAcquireSemaphore(pdev->Res->cmd_sem); \ + EngAcquireSemaphore(pdev->Res->cmd_sem); WaitForCmdRing(pdev); cmd = SPICE_RING_PROD_ITEM(pdev->cmd_ring); cmd->type = QXL_CMD_SURFACE; cmd->data = PA(pdev, surface_cmd, pdev->main_mem_slot); PUSH_CMD(pdev); - EngReleaseSemaphore(pdev->Res->cmd_sem); \ + EngReleaseSemaphore(pdev->Res->cmd_sem); } @@ -2437,13 +2437,13 @@ void UpdateArea(PDev *pdev, RECTL *area, UINT32 surface_id) updat_cmd->update_id = ++pdev->Res->update_id; updat_cmd->surface_id = surface_id; - EngAcquireSemaphore(pdev->Res->cmd_sem); \ + EngAcquireSemaphore(pdev->Res->cmd_sem); WaitForCmdRing(pdev); cmd = SPICE_RING_PROD_ITEM(pdev->cmd_ring); cmd->type = QXL_CMD_UPDATE; cmd->data = PA(pdev, updat_cmd, pdev->main_mem_slot); PUSH_CMD(pdev); - EngReleaseSemaphore(pdev->Res->cmd_sem); \ + EngReleaseSemaphore(pdev->Res->cmd_sem); do { #ifdef DBG { |