Lock "FunctionName" should not be initialized

This commit is contained in:
Alex 2022-10-27 02:46:46 +03:00
parent 407b44a89a
commit 0a2d3db946
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
NewLock(liballocLock); 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 int liballoc_unlock() { return liballocLock.Unlock(); }
EXTERNC void *liballoc_alloc(size_t Pages) { return KernelAllocator.RequestPages(Pages); } EXTERNC void *liballoc_alloc(size_t Pages) { return KernelAllocator.RequestPages(Pages); }
EXTERNC int liballoc_free(void *Address, size_t Pages) EXTERNC int liballoc_free(void *Address, size_t Pages)

View File

@ -31,7 +31,7 @@ private:
public: public:
SpinLockData *GetLockData() { return &LockData; } SpinLockData *GetLockData() { return &LockData; }
int Lock(const char *FunctionName = "Unknown") int Lock(const char *FunctionName)
{ {
LockData.AttemptingToGet = FunctionName; LockData.AttemptingToGet = FunctionName;
SpinLock_Lock(&LockData.LockData); SpinLock_Lock(&LockData.LockData);