<!-- $XConsortium: thr_pr_s.sgm /main/8 1996/08/30 12:51:39 rws $ -->
<!-- (c) Copyright 1996 Digital Equipment Corporation. -->
<!-- (c) Copyright 1996 Hewlett-Packard Company. -->
<!-- (c) Copyright 1996 International Business Machines Corp. -->
<!-- (c) Copyright 1996 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1996 Novell, Inc. -->
<!-- (c) Copyright 1996 FUJITSU LIMITED. -->
<!-- (c) Copyright 1996 Hitachi. -->


<![%CDE.C.CDE;[<Refentry Id="CDEMX.XCDI.MAN251a.rsml.1">]]>
<![%CDE.C.XO;[<Refentry Id="XCDI.MAN251a.rsml.1">]]>

<RefMeta>
<RefEntryTitle>tt_thread_procid_set</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>tt_thread_procid_set</Function></RefName>
<RefPurpose>
set the default procid for the currently active thread
</RefPurpose>
</RefNameDiv>
<RefSynopsisDiv>
<FuncSynopsis Remap="ANSI">
<FuncSynopsisInfo>#include &lt;Tt/tt_c.h>
</FuncSynopsisInfo>
<FuncDef>Tt_status <Function>tt_thread_procid_set</Function></FuncDef>
<ParamDef>const char *<Parameter>procid</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para>The
<Function>tt_thread_procid_set</Function> function
sets the default procid for the currently active thread.
The default procid is an implicit argument to most ToolTalk API calls.
</Para>
</RefSect1>
<RefSect1>
<Title>ARGUMENTS</Title>
<VariableList>
<VarListEntry>
<Term><symbol role="Variable">procid</symbol></Term>
<ListItem>
<Para>Specifies the name of the procid that is to be
the default procid for the current thread.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RETURN VALUE</Title>
<Para>Upon completion, the
<Function>tt_thread_procid_set</Function> function
returns the status of the operation as one of the following
<StructName Role="typedef">Tt_status</StructName> values:
</Para>
<VariableList>
<VarListEntry><Term><SystemItem Class="Constant">TT_OK</SystemItem></Term>
<ListItem>
<Para>The operation completed successfully.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry><Term><SystemItem Class="Constant">TT_ERR_NOMP</SystemItem></Term>
<ListItem>
<Para>The <command>ttsession</command> process is not running and
the ToolTalk service cannot start it.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry><Term><SystemItem Class="Constant">TT_ERR_PROCID</SystemItem></Term>
<ListItem>
<Para>The current default process identifier is out of date or invalid.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry><Term><SystemItem Class="Constant">TT_ERR_UNIMP</SystemItem></Term>
<ListItem>
<Para>The ToolTalk implementation does not support multithreading.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry><Term><SystemItem Class="Constant">TT_ERR_TOOLATE</SystemItem></Term>
<ListItem>
<Para>The multithreading feature has not been enabled.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>APPLICATION USAGE</Title>
<Para>None.
</para>
</RefSect1>
<RefSect1>
<Title>SEE ALSO</Title>
<Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.open;
</Para>
</RefSect1>
</refentry>
