::xotcl::Object ::xotcl::Object ::xotcl::THREAD ::xotcl::THREAD → recreate → shutdown ::xotcl::THREAD->::xotcl::Object

Class ::xotcl::THREAD

::xotcl::THREAD[i] create ... \
           [ -exithandler (default "ns_log notice "EXITHANDLER of slave thread SELF [pid]"") ] \
           [ -lightweight (default "0") ] \
           [ -persistent (default "0") ]

Defined in

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xotcl::Object[i]

Methods (to be applied on the object)

  • recreate (scripted, private)

     xotcl::THREAD[i] recreate obj args [ args... ]

    this method catches recreation of THREADs in worker threads it reinitializes the thread according to the new definition.

    Parameters:
    obj (required)
    args (required)

    Testcases:
    No testcase defined.
  • shutdown (scripted, private)

     xotcl::THREAD[i] shutdown registry obj tid

    Stop a persistent thread after NaviServer has drained connection workers. The shared stopping marker prevents further sends and duplicate releases.

    Parameters:
    registry (required)
    shared thread registry used by the object's class
    obj (required)
    fully qualified thread object name
    tid (required)
    thread identifier registered for this shutdown callback

    Testcases:
    No testcase defined.