mirror of
https://github.com/RGBCube/serenity
synced 2025-07-30 02:57:34 +00:00
Add a VMO pointer to VNode.
This way, if anyone tries to map an already mapped file, we share the VMO.
This commit is contained in:
parent
862f108cb5
commit
3b2dcd5929
8 changed files with 59 additions and 10 deletions
|
@ -87,7 +87,7 @@ private:
|
|||
};
|
||||
|
||||
template<typename CallableType>
|
||||
class CallableWrapper : public CallableWrapperBase {
|
||||
class CallableWrapper final : public CallableWrapperBase {
|
||||
public:
|
||||
explicit CallableWrapper(CallableType&& callable)
|
||||
: m_callable(move(callable))
|
||||
|
|
|
@ -28,9 +28,10 @@ inline T max(const T& a, const T& b)
|
|||
}
|
||||
|
||||
|
||||
template<typename T>
|
||||
static inline T ceilDiv(T a, T b)
|
||||
template<typename T, typename U>
|
||||
static inline T ceilDiv(T a, U b)
|
||||
{
|
||||
static_assert(sizeof(T) == sizeof(U));
|
||||
T result = a / b;
|
||||
if ((a % b) != 0)
|
||||
++result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue