mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-19 03:01:45 +00:00
Added -> operator
This commit is contained in:
@@ -190,6 +190,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
operator bool() { return this->Load() != 0; }
|
operator bool() { return this->Load() != 0; }
|
||||||
|
T operator->() { return this->Load(); }
|
||||||
T operator++() { return this->FetchAdd(1) + 1; }
|
T operator++() { return this->FetchAdd(1) + 1; }
|
||||||
T operator--() { return this->FetchSub(1) - 1; }
|
T operator--() { return this->FetchSub(1) - 1; }
|
||||||
T operator++(int) { return this->FetchAdd(1); }
|
T operator++(int) { return this->FetchAdd(1); }
|
||||||
|
Reference in New Issue
Block a user