mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Remove dead mutex
This commit is contained in:
@@ -865,7 +865,6 @@ void init_checker_info(CheckerInfo *i) {
|
|||||||
gb_mutex_init(&i->lazy_mutex);
|
gb_mutex_init(&i->lazy_mutex);
|
||||||
|
|
||||||
mutex_init(&i->type_info_mutex);
|
mutex_init(&i->type_info_mutex);
|
||||||
mutex_init(&i->scope_mutex);
|
|
||||||
mutex_init(&i->deps_mutex);
|
mutex_init(&i->deps_mutex);
|
||||||
mutex_init(&i->identifier_uses_mutex);
|
mutex_init(&i->identifier_uses_mutex);
|
||||||
mutex_init(&i->foreign_mutex);
|
mutex_init(&i->foreign_mutex);
|
||||||
@@ -897,7 +896,6 @@ void destroy_checker_info(CheckerInfo *i) {
|
|||||||
gb_mutex_destroy(&i->gen_types_mutex);
|
gb_mutex_destroy(&i->gen_types_mutex);
|
||||||
gb_mutex_destroy(&i->lazy_mutex);
|
gb_mutex_destroy(&i->lazy_mutex);
|
||||||
mutex_destroy(&i->type_info_mutex);
|
mutex_destroy(&i->type_info_mutex);
|
||||||
mutex_destroy(&i->scope_mutex);
|
|
||||||
mutex_destroy(&i->deps_mutex);
|
mutex_destroy(&i->deps_mutex);
|
||||||
mutex_destroy(&i->identifier_uses_mutex);
|
mutex_destroy(&i->identifier_uses_mutex);
|
||||||
mutex_destroy(&i->foreign_mutex);
|
mutex_destroy(&i->foreign_mutex);
|
||||||
|
|||||||
@@ -293,8 +293,6 @@ struct CheckerInfo {
|
|||||||
// NOTE(bill): If the semantic checker (check_proc_body) is to ever to be multithreaded,
|
// NOTE(bill): If the semantic checker (check_proc_body) is to ever to be multithreaded,
|
||||||
// these variables will be of contention
|
// these variables will be of contention
|
||||||
|
|
||||||
BlockingMutex scope_mutex;
|
|
||||||
|
|
||||||
// NOT recursive & Only used at the end of `check_proc_body`
|
// NOT recursive & Only used at the end of `check_proc_body`
|
||||||
// This is a possible source of contention but probably not
|
// This is a possible source of contention but probably not
|
||||||
// too much of a problem in practice
|
// too much of a problem in practice
|
||||||
|
|||||||
Reference in New Issue
Block a user