// extract original plugin context, basically it should be `this`
METAPLUGIN *pctx = (METAPLUGIN *)ctx->pContext;
// this ensures that handlePluginEvent is thread safe for extracted pContext
- smart_lock<smart_mutex> lg(&pctx->mutex);
+ // smart_lock<smart_mutex> lg(&pctx->mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
{
// synchronie access to job_cancelled variable
- smart_lock<smart_mutex> lg(&mutex);
+ // smart_lock<smart_mutex> lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
// synchronie access to job_cancelled variable
- smart_lock<smart_mutex> lg(&mutex);
+ // smart_lock<smart_mutex> lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
// synchronie access to job_cancelled variable
- smart_lock<smart_mutex> lg(&mutex);
+ // smart_lock<smart_mutex> lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
// synchronie access to job_cancelled variable
- smart_lock<smart_mutex> lg(&mutex);
+ // smart_lock<smart_mutex> lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
{
// synchronie access to job_cancelled variable
- smart_lock<smart_mutex> lg(&mutex);
+ // smart_lock<smart_mutex> lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
// synchronie access to job_cancelled variable
- smart_lock<smart_mutex> lg(&mutex);
+ // smart_lock<smart_mutex> lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
{
// synchronie access to job_cancelled variable
- smart_lock<smart_mutex> lg(&mutex);
+ // smart_lock<smart_mutex> lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
if ((!CUSTOMNAMESPACE && isourpluginfname(PLUGINPREFIX, fname)) || (CUSTOMNAMESPACE && isourpluginfname(PLUGINNAMESPACE, fname)))
{
// synchronie access to job_cancelled variable
- smart_lock<smart_mutex> lg(&mutex);
+ // smart_lock<smart_mutex> lg(&mutex); - removed on request
if (!job_cancelled) {
if (::checkFile != NULL) {
return ::checkFile(ctx, fname);
*/
void METAPLUGIN::terminate_backends_oncancel(bpContext *ctx)
{
- smart_lock<smart_mutex> lg(&mutex);
+ // smart_lock<smart_mutex> lg(&mutex); - removed on request
if (job_cancelled) {
DMSG0(ctx, DINFO, "Ensure backend termination on cancelled job\n");
backend.foreach_command_status(backendctx_termination_func, ctx);