GDBThreadStateTerminated.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 30 Sep 2014 20:13:27 +0100
changeset 50 61e8a7c86f38
parent 43 GDBThreadStatusTerminated.st@22236b6d1d9a
child 51 2fa20404923c
permissions -rw-r--r--
Renamed GDBThreadStatus* to GDBThreadState* It better matches GDB terminology

"{ Package: 'jv:libgdbs' }"

GDBThreadState subclass:#GDBThreadStateTerminated
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'GDB-Core'
!

GDBThreadStateTerminated class instanceVariableNames:'theOneAndOnlyInstance'

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

!GDBThreadStateTerminated 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.
! !

!GDBThreadStateTerminated 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>"
! !

!GDBThreadStateTerminated methodsFor:'testing'!

isTerminated
    ^ true

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