The IPerformanceSettings class defines settings which you can change on an application wide basis to affect your application's performance. The enumeration IPerformanceSettings::Setting describes the settings you can change using this class.
SettingsUse settings to tune Open Class Library to your application's requirements for thread safety and error checking.
![]() |
public:
static void disableSetting(Setting setting)
Use this function to disable the IPerformanceSettings::Setting specified by setting.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
static void enableSetting( Setting setting, bool enable = true )
Use this function to enable the IPerformanceSettings::Setting specified by setting.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
static bool isSettingEnabled(Setting setting)
Returns true if the IPerformanceSettings::Setting specified by setting is enabled.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
enum Setting { singleThreaded=1,
singleThreadedGUI=2,
validateWindowHandle=8,
dynamicToolBarButtons=16 }Each of these enumerators specifies one of the options you control using enableSetting or disableSetting.
Enabling this setting causes your single threaded application application to run faster because the overhead of cross thread serialization is avoided.
Enable this setting when your application creates, manipulates, and destroys IWindow objects using a single thread. With this setting enabled, you can still use INonGUIThread, IResourceLock and related classes to manipulate and synchronize threads not related to the user interface.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |