]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/lock: allow condVar timeouts
authorVMware, Inc <>
Thu, 17 Jun 2010 21:29:32 +0000 (14:29 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 17 Jun 2010 21:29:32 +0000 (14:29 -0700)
Pass the timeout value through now that timeouts are possible

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/lock/ulCondVar.c

index d8f2b954f2a5dd7e76be96e3ded37228ddb16a19..98c07453feafab4f56766c3c8fb4913588ecada5 100644 (file)
@@ -638,7 +638,7 @@ MXUserWaitCondVar(MXUserHeader *header,    // IN:
 
    Atomic_Inc(&condVar->referenceCount);
 
-   err = MXUserWaitInternal(lock, condVar, 0, &signalled);
+   err = MXUserWaitInternal(lock, condVar, msecWait, &signalled);
 
    if (err != 0) {
       MXUserDumpAndPanic(header, "%s: failure %d on condVar (%p; %s)\n",