#include "viraccessapicheck.h"
#include "viraccessapicheckqemu.h"
#include "virpolkit.h"
+#include "virthreadjob.h"
#define VIR_FROM_THIS VIR_FROM_RPC
print " void *args$argann,\n";
print " void *ret$retann)\n";
print "{\n";
+ print " int rv;\n";
+ print " virThreadJobSet(\"$name\");\n";
print " VIR_DEBUG(\"server=%p client=%p msg=%p rerr=%p args=%p ret=%p\", server, client, msg, rerr, args, ret);\n";
- print " return $name(server, client, msg, rerr";
+ print " rv = $name(server, client, msg, rerr";
if ($argtype ne "void") {
print ", args";
}
print ", ret";
}
print ");\n";
+ print " virThreadJobClear(rv);\n";
+ print " return rv;\n";
print "}\n";
# Finally we print out the dispatcher method body impl