Tcl 9.1/Tk9.1 Documentation > Tcl C API, version 9.1a1 > InitSubSyst

Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API

NAME

Tcl_InitSubsystems — initialize the Tcl library.

SYNOPSIS

#include <tcl.h>
const char *
Tcl_InitSubsystems()

DESCRIPTION

The Tcl_InitSubsystems procedure initializes various Tcl subsystems. It should be called by any additional Tcl threads created after the main thread in a Tcl application that wish to use Tcl facilities without creating an interpreter. Threads that create interpreters using Tcl_CreateInterp do not need to call this function, provided that Tcl_CreateInterp is the first call into Tcl from that thread.

Note that the main thread must have first called either TclZipfs_AppHook or Tcl_FindExecutable to perform application-wide Tcl initialization before additional threads using Tcl are created. Tcl_InitSubsystems does not suffice for this purpose and should only be used to initialize Tcl in secondary threads. It need not be called in the main thread invoking one of the two aforementioned functions.

The result of Tcl_InitSubsystems is the full Tcl version string, including build information (for example, 9.0.0+abcdef...abcdef.gcc-1002).

KEYWORDS

binary, executable file
Copyright © 2018 Tcl Core Team