diff options
author | Lukas Larsson <lukas@erlang.org> | 2020-07-08 17:18:53 +0200 |
---|---|---|
committer | Lukas Larsson <lukas@erlang.org> | 2020-09-21 16:40:30 +0200 |
commit | 4971092f8d0bafcd36ad8c531399d130fab43f5f (patch) | |
tree | 328490d153be747d5fe73a2adcc5ce5cb5dc67a9 /erts/emulator/beam/erl_lock_check.h | |
parent | 2c251b21dc53b2105be33b0237986880957e3ed3 (diff) | |
download | erlang-4971092f8d0bafcd36ad8c531399d130fab43f5f.tar.gz |
erts: Refactor all headers to work in C++
Co-authored-by: John Högberg <john@erlang.org>
Co-authored-by: Dan Gudmundsson <dgud@erlang.org>
Diffstat (limited to 'erts/emulator/beam/erl_lock_check.h')
-rw-r--r-- | erts/emulator/beam/erl_lock_check.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/erts/emulator/beam/erl_lock_check.h b/erts/emulator/beam/erl_lock_check.h index b32f27d9f9..b5b141bff6 100644 --- a/erts/emulator/beam/erl_lock_check.h +++ b/erts/emulator/beam/erl_lock_check.h @@ -57,7 +57,7 @@ typedef struct { void erts_lc_init(void); void erts_lc_late_init(void); -Sint16 erts_lc_get_lock_order_id(char *name); +Sint16 erts_lc_get_lock_order_id(const char *name); void erts_lc_check(erts_lc_lock_t *have, int have_len, erts_lc_lock_t *have_not, int have_not_len); void erts_lc_check_exact(erts_lc_lock_t *have, int have_len); @@ -66,30 +66,30 @@ void erts_lc_have_lock_ids(int *resv, int *ids, int len); void erts_lc_check_no_locked_of_type(erts_lock_flags_t flags); int erts_lc_trylock_force_busy_flg(erts_lc_lock_t *lck, erts_lock_options_t options); void erts_lc_trylock_flg_x(int locked, erts_lc_lock_t *lck, erts_lock_options_t options, - char *file, unsigned int line); + const char *file, unsigned int line); void erts_lc_lock_flg_x(erts_lc_lock_t *lck, erts_lock_options_t options, - char *file, unsigned int line); + const char *file, unsigned int line); void erts_lc_unlock_flg(erts_lc_lock_t *lck, erts_lock_options_t options); void erts_lc_might_unlock_flg(erts_lc_lock_t *lck, erts_lock_options_t options); int erts_lc_trylock_force_busy(erts_lc_lock_t *lck); void erts_lc_trylock_x(int locked, erts_lc_lock_t *lck, - char* file, unsigned int line); -void erts_lc_lock_x(erts_lc_lock_t *lck, char* file, unsigned int line); + const char* file, unsigned int line); +void erts_lc_lock_x(erts_lc_lock_t *lck, const char* file, unsigned int line); void erts_lc_unlock(erts_lc_lock_t *lck); void erts_lc_might_unlock(erts_lc_lock_t *lck); -void erts_lc_init_lock(erts_lc_lock_t *lck, char *name, erts_lock_flags_t flags); -void erts_lc_init_lock_x(erts_lc_lock_t *lck, char *name, erts_lock_flags_t flags, Eterm extra); +void erts_lc_init_lock(erts_lc_lock_t *lck, const char *name, erts_lock_flags_t flags); +void erts_lc_init_lock_x(erts_lc_lock_t *lck, const char *name, erts_lock_flags_t flags, Eterm extra); void erts_lc_destroy_lock(erts_lc_lock_t *lck); void erts_lc_fail(char *fmt, ...); -int erts_lc_assert_failed(char *file, int line, char *assertion); +int erts_lc_assert_failed(const char *file, int line, const char *assertion); void erts_lc_set_thread_name(char *thread_name); void erts_lc_pll(void); void erts_lc_require_lock_flg(erts_lc_lock_t *lck, erts_lock_options_t options, - char *file, unsigned int line); + const char *file, unsigned int line); void erts_lc_unrequire_lock_flg(erts_lc_lock_t *lck, erts_lock_options_t options); -void erts_lc_require_lock(erts_lc_lock_t *lck, char *file, unsigned int line); +void erts_lc_require_lock(erts_lc_lock_t *lck, const char *file, unsigned int line); void erts_lc_unrequire_lock(erts_lc_lock_t *lck); int erts_lc_is_emu_thr(void); |