diff options
author | Rickard Green <[email protected]> | 2011-12-14 15:57:03 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2012-04-16 16:21:41 +0200 |
commit | 3e454414a40bba082e5dc0be310f71843200dcf4 (patch) | |
tree | 5353748fc6f19043c41f6f5c191e407c6ff69a04 /erts/emulator/beam/erl_process.c | |
parent | cfea5eea406ba3af96588ff458e55de9a149d9c5 (diff) | |
download | otp-3e454414a40bba082e5dc0be310f71843200dcf4.tar.gz otp-3e454414a40bba082e5dc0be310f71843200dcf4.tar.bz2 otp-3e454414a40bba082e5dc0be310f71843200dcf4.zip |
Implement possibility to use ordinary mutexes as process locks
Diffstat (limited to 'erts/emulator/beam/erl_process.c')
-rw-r--r-- | erts/emulator/beam/erl_process.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index 95d408f79d..4f8e00f7f1 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -6971,8 +6971,8 @@ Uint erts_process_count(void) void erts_free_proc(Process *p) { -#if defined(ERTS_ENABLE_LOCK_COUNT) && defined(ERTS_SMP) - erts_lcnt_proc_lock_destroy(p); +#ifdef ERTS_SMP + erts_proc_lock_fin(p); #endif erts_free(ERTS_ALC_T_PROC, (void *) p); } @@ -7629,8 +7629,8 @@ erts_cleanup_empty_process(Process* p) free_message_buffer(p->mbuf); p->mbuf = NULL; } -#if defined(ERTS_ENABLE_LOCK_COUNT) && defined(ERTS_SMP) - erts_lcnt_proc_lock_destroy(p); +#ifdef ERTS_SMP + erts_proc_lock_fin(p); #endif #ifdef DEBUG erts_debug_verify_clean_empty_process(p); |