Package PyFoam :: Package Execution :: Module FoamThread
[hide private]
[frames] | no frames]

Module FoamThread

source code

Thread wrappers for OpenFOAM

Classes [hide private]
  FoamThread
Thread running an OpenFOAM command

Functions [hide private]
  getLinuxMem(thrd)
Reads the Memory usage of a thread on a linux-System

Imports: threading.Thread, threading.Lock, threading.Timer, popen2.Popen4, time.time, time.sleep, resource.getrusage, resource.getpagesize, resource.RUSAGE_CHILDREN, os.uname, os.kill, signal, Basics.LineReader.LineReader, Infrastructure.Logging.foamLogger


Function Details [hide private]

getLinuxMem(thrd)

source code 
Reads the Memory usage of a thread on a linux-System
Parameters:
  • thrd - the thread object in question