CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
psClasses.queueNode Class Reference

Public Member Functions

def __init__ (self, cores=4, jay=2)
 
def append (self, item)
 
def pendingThreads (self)
 
def queueWeight (self)
 

Public Attributes

 QueueSem
 
 RunningThreads
 
 ThreadLog
 

Detailed Description

Definition at line 184 of file psClasses.py.

Constructor & Destructor Documentation

def psClasses.queueNode.__init__ (   self,
  cores = 4,
  jay = 2 
)

Definition at line 185 of file psClasses.py.

185  def __init__(self,cores = 4,jay = 2):
186  self.QueueSem = BoundedSemaphore(value=cores/jay)
187  self.RunningThreads = []
188  self.ThreadLog = []
189 
def __init__(self, cores=4, jay=2)
Definition: psClasses.py:185

Member Function Documentation

def psClasses.queueNode.append (   self,
  item 
)

Definition at line 190 of file psClasses.py.

Referenced by diclist.diclist.add(), and Vispa.Views.PropertyView.PropertyView.addProperty().

190  def append(self,item):
191  self.RunningThreads.append(item)
192  t=time.time()
193  self.ThreadLog.append([t,item.BuildNode.LibName,"INFO: %s thread %s added for Library %s" % (t,item.name,item.BuildNode.LibName)])
194 
def append(self, item)
Definition: psClasses.py:190
def psClasses.queueNode.pendingThreads (   self)

Definition at line 195 of file psClasses.py.

References psClasses.queueNode.RunningThreads.

195  def pendingThreads(self):
196  return len([x for x in self.RunningThreads if x.is_alive()])
197 
def pendingThreads(self)
Definition: psClasses.py:195
def psClasses.queueNode.queueWeight (   self)

Definition at line 198 of file psClasses.py.

References psClasses.queueNode.RunningThreads.

198  def queueWeight(self):
199  return sum([x.Weight for x in self.RunningThreads if x.is_alive()])
200 
201 
202 
def queueWeight(self)
Definition: psClasses.py:198

Member Data Documentation

psClasses.queueNode.QueueSem

Definition at line 186 of file psClasses.py.

psClasses.queueNode.RunningThreads
psClasses.queueNode.ThreadLog

Definition at line 188 of file psClasses.py.