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

Constructor & Destructor Documentation

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

Definition at line 184 of file psClasses.py.

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

Member Function Documentation

def psClasses.queueNode.append (   self,
  item 
)

Definition at line 189 of file psClasses.py.

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

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

Definition at line 194 of file psClasses.py.

References psClasses.queueNode.RunningThreads.

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

Definition at line 197 of file psClasses.py.

References psClasses.queueNode.RunningThreads.

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

Member Data Documentation

psClasses.queueNode.QueueSem

Definition at line 185 of file psClasses.py.

psClasses.queueNode.RunningThreads
psClasses.queueNode.ThreadLog

Definition at line 187 of file psClasses.py.