42 |
|
|
43 |
#if CONFIG_DEVMODE |
#if CONFIG_DEVMODE |
44 |
# include <string> |
# include <string> |
45 |
|
# include <stdexcept> |
46 |
const std::string __err_msg_iterator_invalidated = "Pool/RTList iterator invalidated"; |
const std::string __err_msg_iterator_invalidated = "Pool/RTList iterator invalidated"; |
47 |
#endif // CONFIG_DEVMODE |
#endif // CONFIG_DEVMODE |
48 |
|
|
541 |
src->prev = prev; |
src->prev = prev; |
542 |
src->next = dst; |
src->next = dst; |
543 |
#if CONFIG_DEVMODE |
#if CONFIG_DEVMODE |
544 |
src->list = this; |
src->list = dst->list; |
545 |
#endif // CONFIG_DEVMODE |
#endif // CONFIG_DEVMODE |
546 |
} |
} |
547 |
|
|
554 |
src->prev = dst; |
src->prev = dst; |
555 |
src->next = next; |
src->next = next; |
556 |
#if CONFIG_DEVMODE |
#if CONFIG_DEVMODE |
557 |
src->list = this; |
src->list = dst->list; |
558 |
#endif // CONFIG_DEVMODE |
#endif // CONFIG_DEVMODE |
559 |
} |
} |
560 |
|
|
717 |
return elements <= 0; |
return elements <= 0; |
718 |
} |
} |
719 |
|
|
720 |
|
int countFreeElements() { |
721 |
|
return freelist.count(); |
722 |
|
} |
723 |
|
|
724 |
/** |
/** |
725 |
* Returns the current size of the pool, that is the amount of |
* Returns the current size of the pool, that is the amount of |
726 |
* pre-allocated elements from the operating system. It equals the |
* pre-allocated elements from the operating system. It equals the |