cygserver: remove all asserts on "this"
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
c37171b528
commit
3913811454
@ -172,7 +172,6 @@ process::cleanup ()
|
|||||||
void
|
void
|
||||||
process_cache::submission_loop::request_loop ()
|
process_cache::submission_loop::request_loop ()
|
||||||
{
|
{
|
||||||
assert (this);
|
|
||||||
assert (_cache);
|
assert (_cache);
|
||||||
assert (_interrupt_event);
|
assert (_interrupt_event);
|
||||||
|
|
||||||
@ -377,7 +376,6 @@ process_cache::wait_for_processes (const HANDLE interrupt_event)
|
|||||||
size_t
|
size_t
|
||||||
process_cache::sync_wait_array (const HANDLE interrupt_event)
|
process_cache::sync_wait_array (const HANDLE interrupt_event)
|
||||||
{
|
{
|
||||||
assert (this);
|
|
||||||
assert (interrupt_event && interrupt_event != INVALID_HANDLE_VALUE);
|
assert (interrupt_event && interrupt_event != INVALID_HANDLE_VALUE);
|
||||||
|
|
||||||
/* Always reset _cache_add_trigger before filling up the array again. */
|
/* Always reset _cache_add_trigger before filling up the array again. */
|
||||||
@ -424,7 +422,6 @@ process_cache::sync_wait_array (const HANDLE interrupt_event)
|
|||||||
void
|
void
|
||||||
process_cache::check_and_remove_process (const size_t index)
|
process_cache::check_and_remove_process (const size_t index)
|
||||||
{
|
{
|
||||||
assert (this);
|
|
||||||
assert (index < elements (_wait_array) - SPECIALS_COUNT);
|
assert (index < elements (_wait_array) - SPECIALS_COUNT);
|
||||||
|
|
||||||
class process *const process = _process_array[index];
|
class process *const process = _process_array[index];
|
||||||
|
@ -85,7 +85,6 @@ threaded_queue::~threaded_queue ()
|
|||||||
void
|
void
|
||||||
threaded_queue::add_submission_loop (queue_submission_loop *const submitter)
|
threaded_queue::add_submission_loop (queue_submission_loop *const submitter)
|
||||||
{
|
{
|
||||||
assert (this);
|
|
||||||
assert (submitter);
|
assert (submitter);
|
||||||
assert (submitter->_queue == this);
|
assert (submitter->_queue == this);
|
||||||
assert (!submitter->_next);
|
assert (!submitter->_next);
|
||||||
@ -158,7 +157,6 @@ threaded_queue::stop ()
|
|||||||
void
|
void
|
||||||
threaded_queue::add (queue_request *const therequest)
|
threaded_queue::add (queue_request *const therequest)
|
||||||
{
|
{
|
||||||
assert (this);
|
|
||||||
assert (therequest);
|
assert (therequest);
|
||||||
assert (!therequest->_next);
|
assert (!therequest->_next);
|
||||||
|
|
||||||
@ -313,7 +311,6 @@ queue_submission_loop::~queue_submission_loop ()
|
|||||||
bool
|
bool
|
||||||
queue_submission_loop::start ()
|
queue_submission_loop::start ()
|
||||||
{
|
{
|
||||||
assert (this);
|
|
||||||
assert (!_hThread);
|
assert (!_hThread);
|
||||||
|
|
||||||
const bool was_running = _running;
|
const bool was_running = _running;
|
||||||
@ -337,7 +334,6 @@ queue_submission_loop::start ()
|
|||||||
bool
|
bool
|
||||||
queue_submission_loop::stop ()
|
queue_submission_loop::stop ()
|
||||||
{
|
{
|
||||||
assert (this);
|
|
||||||
assert (_hThread && _hThread != INVALID_HANDLE_VALUE);
|
assert (_hThread && _hThread != INVALID_HANDLE_VALUE);
|
||||||
|
|
||||||
const bool was_running = _running;
|
const bool was_running = _running;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user