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 182 of file psClasses.py.

Constructor & Destructor Documentation

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

Definition at line 183 of file psClasses.py.

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

Member Function Documentation

def psClasses.queueNode.append (   self,
  item 
)

Definition at line 188 of file psClasses.py.

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

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

Definition at line 193 of file psClasses.py.

References psClasses.queueNode.RunningThreads.

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

Definition at line 196 of file psClasses.py.

References psClasses.queueNode.RunningThreads.

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

Member Data Documentation

psClasses.queueNode.QueueSem

Definition at line 184 of file psClasses.py.

psClasses.queueNode.RunningThreads
psClasses.queueNode.ThreadLog

Definition at line 186 of file psClasses.py.