mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
Kernel: Store process names as KString
This commit is contained in:
@@ -19,10 +19,13 @@ UNMAP_AFTER_INIT void WorkQueue::initialize()
|
||||
g_io_work = new WorkQueue("IO WorkQueue");
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT WorkQueue::WorkQueue(const char* name)
|
||||
UNMAP_AFTER_INIT WorkQueue::WorkQueue(StringView name)
|
||||
{
|
||||
RefPtr<Thread> thread;
|
||||
Process::create_kernel_process(thread, name, [this] {
|
||||
auto name_kstring = KString::try_create(name);
|
||||
if (name_kstring.is_error())
|
||||
TODO();
|
||||
Process::create_kernel_process(thread, name_kstring.release_value(), [this] {
|
||||
for (;;) {
|
||||
WorkItem* item;
|
||||
bool have_more;
|
||||
|
||||
Reference in New Issue
Block a user