feat: add SMB networking support
This commit is contained in:
1 parent
6665750528
commit
2af2e90606
55 files changed
+7456
-158
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
// Host stand-in for the kernel scheduler: every pthread is a "process".
|
||||
#include <atomic>
|
||||
#include <cstdint>
|
||||
namespace Sched {
|
||||
struct Process {
|
||||
int pid = -1;
|
||||
int sessionId = 0;
|
||||
std::atomic<bool> killPending{false};
|
||||
};
|
||||
int GetCurrentPid();
|
||||
int GetCurrentTid();
|
||||
Process* GetCurrentProcessPtr();
|
||||
Process* GetCurrentThreadPtr();
|
||||
bool HasCapability(uint64_t capability);
|
||||
uint64_t ObserveObjectWake(void* object);
|
||||
bool BlockOnObjectSince(void* object, uint64_t timeoutMs, uint64_t observedWake);
|
||||
void WakeObjectWaiters(void* object);
|
||||
}
|
||||
Reference in new issue
Block a user