summaryrefslogtreecommitdiff
path: root/include/osl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-01-05 20:36:56 +0000
committerMichael Meeks <michael.meeks@collabora.com>2016-01-06 09:38:16 +0000
commite75406e54c57fc3113d4f1983249eb2aec0a3bcd (patch)
tree68c4ed87da6e22b6cca557bc3b5d17af2b029c8a /include/osl
parenteafb1ebf74c3caf8fbecdc6a4fc7037c3c8f4964 (diff)
tdf#39631 - branch hints: comment, and tweak variously, also use.
Find a few million mis-predicted branches (according to callgrind) and annotate them. Mark string acquire/release as hot, and a number of deprecated methods as cold. Change-Id: I678b3981794221c97f9ebb70fd0161c0fda5dceb
Diffstat (limited to 'include/osl')
-rw-r--r--include/osl/process.h2
-rw-r--r--include/osl/profile.h24
2 files changed, 13 insertions, 13 deletions
diff --git a/include/osl/process.h b/include/osl/process.h
index f1fec5017b60..8f25344e6c9a 100644
--- a/include/osl/process.h
+++ b/include/osl/process.h
@@ -275,7 +275,7 @@ SAL_DLLPUBLIC oslProcessError SAL_CALL osl_terminateProcess(
@return the process handle on success, NULL in all other cases
*/
SAL_DLLPUBLIC oslProcess SAL_CALL osl_getProcess(
- oslProcessIdentifier Ident);
+ oslProcessIdentifier Ident) SAL_COLD;
/** Free the specified process-handle.
diff --git a/include/osl/profile.h b/include/osl/profile.h
index c81507f131dc..fe0358260c9d 100644
--- a/include/osl/profile.h
+++ b/include/osl/profile.h
@@ -47,7 +47,7 @@ typedef void* oslProfile;
@deprecated
*/
SAL_DLLPUBLIC oslProfile SAL_CALL osl_openProfile(
- rtl_uString *strProfileName, oslProfileOption Options);
+ rtl_uString *strProfileName, oslProfileOption Options) SAL_COLD;
/** Deprecated API.
Close the opened profile an flush all data to the disk.
@@ -55,14 +55,14 @@ SAL_DLLPUBLIC oslProfile SAL_CALL osl_openProfile(
@deprecated
*/
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_closeProfile(
- oslProfile Profile);
+ oslProfile Profile) SAL_COLD;
/** Deprecated API.
@deprecated
*/
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_flushProfile(
- oslProfile Profile);
+ oslProfile Profile) SAL_COLD;
/** Deprecated API.
@deprecated
*/
@@ -70,14 +70,14 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_readProfileString(
oslProfile Profile,
const sal_Char* pszSection, const sal_Char* pszEntry,
sal_Char* pszString, sal_uInt32 MaxLen,
- const sal_Char* pszDefault);
+ const sal_Char* pszDefault) SAL_COLD;
/** Deprecated API.
@deprecated
*/
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_readProfileBool(
oslProfile Profile,
const sal_Char* pszSection, const sal_Char* pszEntry,
- sal_Bool Default);
+ sal_Bool Default) SAL_COLD;
/** Deprecated API.
@deprecated
*/
@@ -85,7 +85,7 @@ SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_readProfileIdent(
oslProfile Profile,
const sal_Char* pszSection, const sal_Char* pszEntry,
sal_uInt32 FirstId, const sal_Char* Strings[],
- sal_uInt32 Default);
+ sal_uInt32 Default) SAL_COLD;
/** Deprecated API.
@deprecated
@@ -93,14 +93,14 @@ SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_readProfileIdent(
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_writeProfileString(
oslProfile Profile,
const sal_Char* pszSection, const sal_Char* pszEntry,
- const sal_Char* pszString);
+ const sal_Char* pszString) SAL_COLD;
/** Deprecated API.
@deprecated
*/
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_writeProfileBool(
oslProfile Profile,
const sal_Char* pszSection, const sal_Char* pszEntry,
- sal_Bool Value);
+ sal_Bool Value) SAL_COLD;
/** Deprecated API.
@deprecated
*/
@@ -108,7 +108,7 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_writeProfileIdent(
oslProfile Profile,
const sal_Char* pszSection, const sal_Char* pszEntry,
sal_uInt32 FirstId, const sal_Char* Strings[],
- sal_uInt32 Value);
+ sal_uInt32 Value) SAL_COLD;
/** Deprecated API.
Acquire the mutex, block if already acquired by another thread.
@@ -117,7 +117,7 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_writeProfileIdent(
*/
SAL_DLLPUBLIC sal_Bool SAL_CALL osl_removeProfileEntry(
oslProfile Profile,
- const sal_Char *pszSection, const sal_Char *pszEntry);
+ const sal_Char *pszSection, const sal_Char *pszEntry) SAL_COLD;
/** Deprecated API.
Get all entries belonging to the specified section.
@@ -126,7 +126,7 @@ SAL_DLLPUBLIC sal_Bool SAL_CALL osl_removeProfileEntry(
*/
SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSectionEntries(
oslProfile Profile, const sal_Char *pszSection,
- sal_Char* pszBuffer, sal_uInt32 MaxLen);
+ sal_Char* pszBuffer, sal_uInt32 MaxLen) SAL_COLD;
/** Deprecated API.
Get all section entries
@@ -134,7 +134,7 @@ SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSectionEntries(
@deprecated
*/
SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSections(
- oslProfile Profile, sal_Char* pszBuffer, sal_uInt32 MaxLen);
+ oslProfile Profile, sal_Char* pszBuffer, sal_uInt32 MaxLen) SAL_COLD;
#ifdef __cplusplus
}