mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 22:08:12 +00:00
Kernel: Store process names as KString
This commit is contained in:
parent
db2e67fd53
commit
55b0b06897
15 changed files with 46 additions and 32 deletions
|
@ -655,7 +655,10 @@ void Plan9FS::ensure_thread()
|
|||
{
|
||||
SpinlockLocker lock(m_thread_lock);
|
||||
if (!m_thread_running.exchange(true, AK::MemoryOrder::memory_order_acq_rel)) {
|
||||
Process::create_kernel_process(m_thread, "Plan9FS", [&]() {
|
||||
auto process_name = KString::try_create("Plan9FS");
|
||||
if (process_name.is_error())
|
||||
TODO();
|
||||
Process::create_kernel_process(m_thread, process_name.release_value(), [&]() {
|
||||
thread_main();
|
||||
m_thread_running.store(false, AK::MemoryOrder::memory_order_release);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue