Naming convention change for atomics
cache_coherent_ is what I'm going with for now based off of studying it further. I really really don't like the "atomic" as the verbiage phrase. It conveys nothing about what the execution engine is actually doing with the thread caches or the bus snoop.
This commit is contained in:
@@ -188,7 +188,7 @@ sync_client_api :: proc()
|
||||
write_time, result := file_last_write_time_by_name( Path_Sectr_Module );
|
||||
if result == OS_ERROR_NONE && host_memory.client_api.write_time != write_time
|
||||
{
|
||||
thread_coherent_store(& host_memory.client_api_hot_reloaded, true)
|
||||
cache_coherent_store(& host_memory.client_api_hot_reloaded, true)
|
||||
|
||||
version_id := host_memory.client_api.lib_version + 1
|
||||
unload_client_api( & host_memory.client_api )
|
||||
@@ -202,11 +202,11 @@ sync_client_api :: proc()
|
||||
}
|
||||
}
|
||||
leader = sync.barrier_wait(& host_memory.client_api_sync_lock)
|
||||
if thread_coherent_load(& host_memory.client_api_hot_reloaded)
|
||||
if cache_coherent_load(& host_memory.client_api_hot_reloaded)
|
||||
{
|
||||
host_memory.client_api.hot_reload(& host_memory, & thread_memory)
|
||||
if thread_memory.id == .Master_Prepper {
|
||||
thread_coherent_store(& host_memory.client_api_hot_reloaded, false)
|
||||
cache_coherent_store(& host_memory.client_api_hot_reloaded, false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user