This method determines whether destruction of the OMOSThread class should kill the operating system thread associated with the class.
val
This value is determined by the value of the Boolean data member endOSThreadInDtor, which must be defined in the <env>Thread class that inherits from OMOSThread. The possible values are as follows:
TRUE—The thread is ended as part of the object's destruction process. FALSE—The thread is not ended when the object is destroyed.