Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

Any way to set a timeout on blocking calls to VixJob_Wait?

$
0
0

 

I've noticed in some cases that a call to VixJob_Wait( ) appears to block indefinitely. For example,

 

 

jobHandle = VixVM_Open( ... );

 

 

jobWaitResult = VixJob_Wait( jobHandle,VIX_PROPERTY_JOB_RESULT_HANDLE, ... );   // Can block indefinitely

 

 

 

 

 

I've noticed that this usually occurs after successive operations such as a VixHost_RegisterVM( ) call followed by VixVM_Open( ) call. This does not occur consistently.

 

 

 

 

 

1. Is there a way to set a timeout on these calls?

 

 

2. Why is this function seemingly blocking indefinitely? Is there some kind of deadlock? The fact that it is not consistent leads me to believe there is a race condition.

 

 

 

 

 

I'm using VIX API v1.1.2, linking with vix.lib (server-1), passingAPI version 1 to VixHost_Connect, and connecting to VMware Server v1.0.4.

 

 


Viewing all articles
Browse latest Browse all 34639

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>