GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
tt_feature_enabled(library call) tt_feature_enabled(library call)

tt_feature_enabled — determine if a particular feature has been enabled in this process

#include &<Tt/tt_c.h>
Tt_status tt_feature_enabled(
Tt_feature feature);

The tt_feature_enabled function queries the ToolTalk service to see if the specified feature has previously been enabled. This allows a library that "wraps around" ToolTalk for sending and receiving messages to determine if multithreaded execution has been enabled by the main program, and to modify its behavior accordingly.

Specifies the feature whose enabled status is to be checked.

Upon completion, the tt_feature_enabled function returns the status of the operation as one of the following Tt_status values:

The feature has been enabled previously.
The feature has not yet been enabled
The version of the ToolTalk library linked with the calling code does not support the indicated feature.

A library using ToolTalk could check to see if the calling application had previously turned on ToolTalk's multithreading feature with the following code:

Tt_status ttstat;
ttstat = tt_feature_enabled(TT_FEATURE_MULTITHREADED);
if (ttstat != TT_OK) {

ttstat = tt_feature_required(TT_FEATURE_MULTITHREADING); }

Tt/tt_c.h - Tttt_c(5), tt_feature_required(3)


Search for    or go to Top of page |  Section l |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.