mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 11:31:51 +01:00
branches/zip: os_process_set_priority_boost(): Unused, remove.
This commit is contained in:
parent
6314305e2b
commit
28b2c54bb2
2 changed files with 0 additions and 43 deletions
|
@ -69,15 +69,6 @@ os_mem_free_large(
|
|||
os_mem_alloc_large() */
|
||||
ulint size); /*!< in: size returned by
|
||||
os_mem_alloc_large() */
|
||||
/****************************************************************//**
|
||||
Sets the priority boost for threads released from waiting within the current
|
||||
process. */
|
||||
UNIV_INTERN
|
||||
void
|
||||
os_process_set_priority_boost(
|
||||
/*==========================*/
|
||||
ibool do_boost); /*!< in: TRUE if priority boost should be done,
|
||||
FALSE if not */
|
||||
|
||||
#ifndef UNIV_NONINL
|
||||
#include "os0proc.ic"
|
||||
|
|
34
os/os0proc.c
34
os/os0proc.c
|
@ -228,37 +228,3 @@ os_mem_free_large(
|
|||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/****************************************************************//**
|
||||
Sets the priority boost for threads released from waiting within the current
|
||||
process. */
|
||||
UNIV_INTERN
|
||||
void
|
||||
os_process_set_priority_boost(
|
||||
/*==========================*/
|
||||
ibool do_boost) /*!< in: TRUE if priority boost should be done,
|
||||
FALSE if not */
|
||||
{
|
||||
#ifdef __WIN__
|
||||
ibool no_boost;
|
||||
|
||||
if (do_boost) {
|
||||
no_boost = FALSE;
|
||||
} else {
|
||||
no_boost = TRUE;
|
||||
}
|
||||
|
||||
#if TRUE != 1
|
||||
# error "TRUE != 1"
|
||||
#endif
|
||||
|
||||
/* Does not do anything currently!
|
||||
SetProcessPriorityBoost(GetCurrentProcess(), no_boost);
|
||||
*/
|
||||
fputs("Warning: process priority boost setting"
|
||||
" currently not functional!\n",
|
||||
stderr);
|
||||
#else
|
||||
UT_NOT_USED(do_boost);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue