mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
Lock "FunctionName" should not be initialized
This commit is contained in:
parent
407b44a89a
commit
0a2d3db946
@ -4,7 +4,7 @@
|
||||
|
||||
NewLock(liballocLock);
|
||||
|
||||
EXTERNC int liballoc_lock() { return liballocLock.Lock(); }
|
||||
EXTERNC int liballoc_lock() { return liballocLock.Lock(__FUNCTION__); }
|
||||
EXTERNC int liballoc_unlock() { return liballocLock.Unlock(); }
|
||||
EXTERNC void *liballoc_alloc(size_t Pages) { return KernelAllocator.RequestPages(Pages); }
|
||||
EXTERNC int liballoc_free(void *Address, size_t Pages)
|
||||
|
@ -31,7 +31,7 @@ private:
|
||||
public:
|
||||
SpinLockData *GetLockData() { return &LockData; }
|
||||
|
||||
int Lock(const char *FunctionName = "Unknown")
|
||||
int Lock(const char *FunctionName)
|
||||
{
|
||||
LockData.AttemptingToGet = FunctionName;
|
||||
SpinLock_Lock(&LockData.LockData);
|
||||
|
Loading…
x
Reference in New Issue
Block a user