diff options
author | Lukas Larsson <[email protected]> | 2013-10-15 18:10:47 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2014-02-24 15:15:57 +0100 |
commit | 8ed59e4a9dddf083d2046e1bd58f397221928c0e (patch) | |
tree | 46c65c4edd5fdcb813ab3ca468c9cbc2eb53ad1d /erts/lib_src/ose/ethread.c | |
parent | f8cfcf356cf2f8c573713fc89883bb99003f242c (diff) | |
download | otp-8ed59e4a9dddf083d2046e1bd58f397221928c0e.tar.gz otp-8ed59e4a9dddf083d2046e1bd58f397221928c0e.tar.bz2 otp-8ed59e4a9dddf083d2046e1bd58f397221928c0e.zip |
ose: Change start way to use arguments to beam.smp directly
The old way registered a shell command that needed to be executed. This
way is more flexible as you can also use the lmconf file to set arguments
there.
Diffstat (limited to 'erts/lib_src/ose/ethread.c')
-rw-r--r-- | erts/lib_src/ose/ethread.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/erts/lib_src/ose/ethread.c b/erts/lib_src/ose/ethread.c index 7d5101d115..db20eab99f 100644 --- a/erts/lib_src/ose/ethread.c +++ b/erts/lib_src/ose/ethread.c @@ -96,11 +96,12 @@ union SIGNAL { static PROCESS blockId(void) { static PROCESS bid = (PROCESS)0; - if (bid == 0) { + /* For now we only use the same block. */ + /* if (bid == 0) { bid = create_block("Erlang-VM", 0, 0, 0, 0); } - - return bid; + return bid; */ + return 0; } static void thr_exit_cleanup(ethr_tid *tid, void *res) @@ -141,8 +142,10 @@ static OS_PROCESS(thr_wrapper) * the function return current domain. */ OSADDRESS domain = get_pid_info(current_process(), 16); +#ifdef DEBUG fprintf(stderr,"[0x%x] New process. Bid:0x%x, domain:%d, exec mode:%s\n", current_process(), bid, domain, execMode); +#endif } { @@ -392,10 +395,11 @@ ethr_thr_create(ethr_tid *tid, void * (*func)(void *), void *arg, use_stack_size, /*opts->prio+5*/31, 0, blockId(), NULL, 0, 0); - if (ose_bind_process(tid->id, opts->coreNo)) { + /* For now we do not attempt to bind schedulers to different cores. + if (ose_bind_process(tid->id, opts->coreNo)) { printf("[0x%x] Binding pid 0x%x (%s) to core no %u.\n", current_process(), tid->id, opts->name, opts->coreNo); - } + }*/ /*FIXME!!! Normally this shouldn't be used in shared mode. Still there is * a problem with stdin fd in fd_ processes which should be further |