kernel: DPC: remove schedulerLocked argument
This commit is contained in:
@@ -62,10 +62,8 @@ public:
|
|||||||
uint32 reservedSlots);
|
uint32 reservedSlots);
|
||||||
void Close(bool cancelPending);
|
void Close(bool cancelPending);
|
||||||
|
|
||||||
status_t Add(DPCCallback* callback,
|
status_t Add(DPCCallback* callback);
|
||||||
bool schedulerLocked);
|
status_t Add(void (*function)(void*), void* argument);
|
||||||
status_t Add(void (*function)(void*), void* argument,
|
|
||||||
bool schedulerLocked);
|
|
||||||
bool Cancel(DPCCallback* callback);
|
bool Cancel(DPCCallback* callback);
|
||||||
|
|
||||||
thread_id Thread() const
|
thread_id Thread() const
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ DPCQueue::Close(bool cancelPending)
|
|||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
DPCQueue::Add(DPCCallback* callback, bool schedulerLocked)
|
DPCQueue::Add(DPCCallback* callback)
|
||||||
{
|
{
|
||||||
// queue the callback, if the queue isn't closed already
|
// queue the callback, if the queue isn't closed already
|
||||||
InterruptsSpinLocker locker(fLock);
|
InterruptsSpinLocker locker(fLock);
|
||||||
@@ -174,14 +174,14 @@ DPCQueue::Add(DPCCallback* callback, bool schedulerLocked)
|
|||||||
|
|
||||||
// notify the condition variable, if necessary
|
// notify the condition variable, if necessary
|
||||||
if (wasEmpty)
|
if (wasEmpty)
|
||||||
fPendingCallbacksCondition.NotifyAll(schedulerLocked);
|
fPendingCallbacksCondition.NotifyAll();
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
DPCQueue::Add(void (*function)(void*), void* argument, bool schedulerLocked)
|
DPCQueue::Add(void (*function)(void*), void* argument)
|
||||||
{
|
{
|
||||||
if (function == NULL)
|
if (function == NULL)
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
@@ -201,7 +201,7 @@ DPCQueue::Add(void (*function)(void*), void* argument, bool schedulerLocked)
|
|||||||
functionCallback->SetTo(function, argument);
|
functionCallback->SetTo(function, argument);
|
||||||
|
|
||||||
// add it
|
// add it
|
||||||
status_t error = Add(functionCallback, schedulerLocked);
|
status_t error = Add(functionCallback);
|
||||||
if (error != B_OK)
|
if (error != B_OK)
|
||||||
Recycle(functionCallback);
|
Recycle(functionCallback);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user