Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-06 02:53:58

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DEADLOCKTEST")
0004 process.source = cms.Source("EmptySource")
0005 
0006 process.maxEvents.input = 20000
0007 
0008 process.a = cms.EDAnalyzer("ConsumingOneSharedResourceAnalyzer", 
0009                             valueMustMatch = cms.untracked.int32(1),
0010                             moduleLabel = cms.untracked.InputTag("one"),
0011                             resourceName = cms.untracked.string("A")
0012                             )
0013 
0014 process.b = cms.EDAnalyzer("ConsumingOneSharedResourceAnalyzer", 
0015                             valueMustMatch = cms.untracked.int32(2),
0016                             moduleLabel = cms.untracked.InputTag("two"),
0017                             resourceName = cms.untracked.string("B")
0018                             )
0019 
0020 process.one = cms.EDProducer("IntLegacyProducer",
0021                              ivalue = cms.int32(1)
0022 )
0023 
0024 process.two = cms.EDProducer("IntLegacyProducer",
0025                              ivalue = cms.int32(2)
0026 )
0027            
0028 process.options = dict(
0029     numberOfThreads = 2,
0030     numberOfStreams = 0,
0031     numberOfConcurrentLuminosityBlocks = 1
0032 )                 
0033 
0034 process.t = cms.Task(process.one, process.two)
0035 
0036 process.p1 = cms.Path(process.a, process.t)
0037 process.p2 = cms.Path(process.b)
0038 
0039 process.add_(cms.Service("ZombieKillerService", secondsBetweenChecks = cms.untracked.uint32(10)))