aboutsummaryrefslogtreecommitdiffstats
path: root/erts/include/internal
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2014-02-23 18:26:38 +0100
committerLukas Larsson <[email protected]>2014-02-24 15:16:07 +0100
commita35d0f5f82f8152f1b953eda039807a7d4f4e9b9 (patch)
tree0410287577061d3ed630e76608bc865613c2b19d /erts/include/internal
parent2bf4f22a9488d94ac1fc3c72a4e9d84151744004 (diff)
downloadotp-a35d0f5f82f8152f1b953eda039807a7d4f4e9b9.tar.gz
otp-a35d0f5f82f8152f1b953eda039807a7d4f4e9b9.tar.bz2
otp-a35d0f5f82f8152f1b953eda039807a7d4f4e9b9.zip
ose: Thread priorities configurable from lmconf
The pattern used for getting the priority from the lmconf is based on the name of the process created. The pattern is: ERTS_%%PROCESS_NAME%%_PRIO with the %%PROCESS_NAME%% replaced by the prefix of the process the priority applies to. eg: ERTS_SCHEDULER_PRIO=24 applies to processes with name SCHEDULER_1, SCHEDULER_2 etc.
Diffstat (limited to 'erts/include/internal')
-rw-r--r--erts/include/internal/ethread.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/erts/include/internal/ethread.h b/erts/include/internal/ethread.h
index 58b4ef55b6..8512ba5884 100644
--- a/erts/include/internal/ethread.h
+++ b/erts/include/internal/ethread.h
@@ -217,7 +217,6 @@ typedef OSPPDKEY ethr_tsd_key;
#define ETHR_USE_OWN_RWMTX_IMPL__
#define ETHR_USE_OWN_MTX_IMPL__
#define ETHR_HAVE_THREAD_NAMES
-#define ETHR_HAVE_THREAD_NICENESS
#define ETHR_PPC_HAVE_NO_LWSYNC
#undef ETHR_HAVE_NATIVE_SPINLOCKS
@@ -510,7 +509,6 @@ typedef struct {
int suggested_stack_size; /* kilo words (default sys dependent) */
#ifdef ETHR_OSE_THREADS
char *name;
- OSPRIORITY prio;
U32 coreNo;
#endif
} ethr_thr_opts;
@@ -518,7 +516,7 @@ typedef struct {
#if defined(ETHR_OSE_THREADS)
/* Default ethr name is big as we want to be able to sprint stuff in there */
#define ETHR_THR_OPTS_DEFAULT_INITER \
- {0, -1, "ethread", get_pri(current_process()), 0}
+ {0, -1, "ethread", 0}
#else
#define ETHR_THR_OPTS_DEFAULT_INITER {0, -1}
#endif