xotcl::THREAD proc recreate (private)

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

Defined in packages/xotcl-core/tcl/40-thread-mod-procs.tcl

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

Parameters:
obj
args

Partial Call Graph (max 5 caller/called nodes):
%3 thread::send thread::send xotcl::THREAD proc recreate xotcl::THREAD proc recreate xotcl::THREAD proc recreate->thread::send

Testcases:
No testcase defined.
Source code:
:log "recreating [self$obj, tid [$obj exists tid]"
if {![string match "::*" $obj]} { set obj ::$obj }
$obj set recreate 1
next
$obj init [lindex $args 0]
if {[nsv_exists [self$obj] && [$obj exists initcmd]} {
  set tid [nsv_get [self$obj]
  ::thread::send $tid [$obj set initcmd]
  $obj set tid $tid
  :log "+++ content of thread $obj ($tid) redefined"
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: