GDBThreadStatusTerminated.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 22 Sep 2014 09:59:28 +0100
changeset 43 22236b6d1d9a
parent 37 a85f0c91f164
permissions -rw-r--r--
Remove threads from thread group when threadgroup terminates.

"{ Package: 'jv:libgdbs' }"

GDBThreadStatus subclass:#GDBThreadStatusTerminated
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'GDB-Core'
!

GDBThreadStatusTerminated class instanceVariableNames:'theOneAndOnlyInstance'

"
 No other class instance variables are inherited by this class.
"
!

!GDBThreadStatusTerminated class methodsFor:'instance creation'!

flushSingleton
    "flushes the cached singleton"

    theOneAndOnlyInstance := nil

    "
     self flushSingleton
    "
!

new
    "returns a singleton"

    ^ self theOneAndOnlyInstance.
!

theOneAndOnlyInstance
    "returns a singleton"

    theOneAndOnlyInstance isNil ifTrue:[
        theOneAndOnlyInstance := self basicNew initialize.
    ].
    ^ theOneAndOnlyInstance.
! !

!GDBThreadStatusTerminated methodsFor:'printing & storing'!

printOn:aStream
    "append a printed representation if the receiver to the argument, aStream"

    aStream nextPutAll: 'dead'

    "Modified: / 22-09-2014 / 00:58:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!GDBThreadStatusTerminated methodsFor:'testing'!

isTerminated
    ^ true

    "Created: / 07-09-2014 / 23:22:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !