COMMCTXSRC = commctx.h
SMARTALISTSRC = smartalist.h
SMARTPTRSRC = smartptr.h
-SMARTMUTEXSRC = smartmutex.h
-SMARTLOCKSRC = smartlock.h
-
-PLUGINLIBSTEST = pluginlib_test.cpp $(PLUGINLIBSSRC) $(UNITTESTSOBJ) $(INIOBJ)
-PLUGINLIBSTESTOBJ = $(filter %.lo,$(PLUGINLIBSTEST:.cpp=.lo))
-ISO8601TEST = iso8601_test.cpp $(ISO8601SRC) $(UNITTESTSOBJ)
-ISO8601TESTOBJ = $(filter %.lo,$(ISO8601TEST:.cpp=.lo))
-COMMCTXTEST = commctx_test.cpp $(COMMCTXSRC) $(SMARTALISTSRC) $(PLUGINLIBSOBJ) $(UNITTESTSOBJ) $(INIOBJ)
-COMMCTXTESTOBJ = $(filter %.lo,$(COMMCTXTEST:.cpp=.lo))
-SMARTALISTTEST = smartalist_test.cpp $(SMARTALISTSRC) $(PLUGINLIBSOBJ) $(UNITTESTSOBJ) $(INIOBJ)
-SMARTALISTTESTOBJ = $(filter %.lo,$(SMARTALISTTEST:.cpp=.lo))
-SMARTPTRTEST = smartptr_test.cpp $(SMARTPTRSRC) $(PLUGINLIBSOBJ) $(UNITTESTSOBJ) $(INIOBJ)
-SMARTPTRTESTOBJ = $(filter %.lo,$(SMARTPTRTEST:.cpp=.lo))
-SMARTLOCKTEST = smartlock_test.cpp $(SMARTLOCKSRC) $(SMARTMUTEXSRC) $(UNITTESTSOBJ)
-SMARTLOCKTESTOBJ = $(filter %.lo,$(SMARTLOCKTEST:.cpp=.lo))
+
+PLUGINLIBSTEST = pluginlib_test.cpp $(PLUGINLIBSSRC)
+PLUGINLIBSTESTOBJ = $(filter %.lo,$(PLUGINLIBSTEST:.cpp=.lo)) $(INIOBJ) $(UNITTESTSOBJ)
+ISO8601TEST = iso8601_test.cpp $(ISO8601SRC)
+ISO8601TESTOBJ = $(filter %.lo,$(ISO8601TEST:.cpp=.lo)) $(UNITTESTSOBJ)
+COMMCTXTEST = commctx_test.cpp $(COMMCTXSRC) $(SMARTALISTSRC)
+COMMCTXTESTOBJ = $(filter %.lo,$(COMMCTXTEST:.cpp=.lo)) $(INIOBJ) $(PLUGINLIBSOBJ) $(UNITTESTSOBJ)
+SMARTALISTTEST = smartalist_test.cpp $(SMARTALISTSRC)
+SMARTALISTTESTOBJ = $(filter %.lo,$(SMARTALISTTEST:.cpp=.lo)) $(INIOBJ) $(PLUGINLIBSOBJ) $(UNITTESTSOBJ)
+SMARTPTRTEST = smartptr_test.cpp $(SMARTPTRSRC)
+SMARTPTRTESTOBJ = $(filter %.lo,$(SMARTPTRTEST:.cpp=.lo)) $(INIOBJ) $(PLUGINLIBSOBJ) $(UNITTESTSOBJ)
METAPLUGINTEST = metaplugin_test.cpp $(METAPLUGINSRC)
METAPLUGINTESTOBJ = $(filter %.lo,$(METAPLUGINTEST:.cpp=.lo)) $(PTCOMMOBJ) $(PLUGINLIBSOBJ) $(METAPLUGINOBJ) $(UNITTESTSOBJ) $(LIBBACOBJ) $(LIBBACCFGOBJ)
# COMMONPLUGINOBJ = $(PLUGINLIBSOBJ) $(ISO8601OBJ) $(EXECPROGOBJ)
COMMONPLUGINOBJ = $(PLUGINLIBSOBJ) $(PTCOMMOBJ) $(METAPLUGINOBJ) $(PLUGINCLASSOBJ) $(PLUGINBASEOBJ)
# COMMONPLUGINTESTS = iso8601_test
-COMMONPLUGINTESTS = pluginlib_test smartalist_test smartptr_test commctx_test smartlock_test iso8601_test
+COMMONPLUGINTESTS = pluginlib_test smartalist_test smartptr_test commctx_test iso8601_test
.c.lo:
@echo "Compiling $< ..."
// 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); - removed on request
+ // lock_guard lg(&pctx->mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
{
// synchronie access to job_cancelled variable
- // smart_lock<smart_mutex> lg(&mutex); - removed on request
+ // lock_guard lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
// synchronie access to job_cancelled variable
- // smart_lock<smart_mutex> lg(&mutex); - removed on request
+ // lock_guard lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
// synchronie access to job_cancelled variable
- // smart_lock<smart_mutex> lg(&mutex); - removed on request
+ // lock_guard lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
{
// synchronie access to job_cancelled variable
- // smart_lock<smart_mutex> lg(&mutex); - removed on request
+ // lock_guard lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
// synchronie access to job_cancelled variable
- // smart_lock<smart_mutex> lg(&mutex); - removed on request
+ // lock_guard lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
{
// synchronie access to job_cancelled variable
- // smart_lock<smart_mutex> lg(&mutex); - removed on request
+ // lock_guard 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); - removed on request
+ // lock_guard 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); - removed on request
+ // lock_guard 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);
// extract original plugin context, basically it should be `this`
PLUGINCLASS *pctx = (PLUGINCLASS *)ctx->pContext;
// this ensures that handlePluginEvent is thread safe for extracted pContext
- // smart_lock<smart_mutex> lg(&pctx->mutex); - removed on request
+ // lock_guard lg(&pctx->mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
{
// synchronie access to job_cancelled variable
- // smart_lock<smart_mutex> lg(&mutex); - removed on request
+ // lock_guard lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
// synchronie access to job_cancelled variable
- // smart_lock<smart_mutex> lg(&mutex); - removed on request
+ // lock_guard lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
// synchronie access to job_cancelled variable
- // smart_lock<smart_mutex> lg(&mutex); - removed on request
+ // lock_guard lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
{
// synchronie access to job_cancelled variable
- // smart_lock<smart_mutex> lg(&mutex); - removed on request
+ // lock_guard lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
// synchronie access to job_cancelled variable
- // smart_lock<smart_mutex> lg(&mutex); - removed on request
+ // lock_guard lg(&mutex); - removed on request
if (job_cancelled) {
return bRC_Error;
}
{
{
// synchronie access to job_cancelled variable
- // smart_lock<smart_mutex> lg(&mutex); - removed on request
+ // lock_guard 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); - removed on request
+ // lock_guard lg(&mutex); - removed on request
if (!job_cancelled) {
if (::checkFile != NULL) {
return ::checkFile(ctx, fname);