mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
Kernel: Remove unused template variant of create_kernel_thread()
This commit is contained in:
parent
db14092d8f
commit
d959b5d9dd
1 changed files with 0 additions and 11 deletions
|
@ -185,17 +185,6 @@ public:
|
|||
|
||||
static NonnullRefPtrVector<Process> all_processes();
|
||||
|
||||
template<typename EntryFunction>
|
||||
RefPtr<Thread> create_kernel_thread(EntryFunction entry, u32 priority, OwnPtr<KString> name, u32 affinity = THREAD_AFFINITY_DEFAULT, bool joinable = true)
|
||||
{
|
||||
auto* entry_func = new EntryFunction(move(entry));
|
||||
return create_kernel_thread([](void* data) {
|
||||
EntryFunction* func = reinterpret_cast<EntryFunction*>(data);
|
||||
(*func)();
|
||||
delete func;
|
||||
},
|
||||
priority, move(name), affinity, joinable);
|
||||
}
|
||||
RefPtr<Thread> create_kernel_thread(void (*entry)(void*), void* entry_data, u32 priority, OwnPtr<KString> name, u32 affinity = THREAD_AFFINITY_DEFAULT, bool joinable = true);
|
||||
|
||||
bool is_profiling() const { return m_profiling; }
|
||||
|
|
Loading…
Add table
Reference in a new issue