/[svn]/linuxsampler/trunk/src/common/Pool.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/Pool.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3305 by schoenebeck, Tue Jun 27 22:19:19 2017 UTC revision 3306 by schoenebeck, Tue Jul 11 15:50:05 2017 UTC
# Line 42  Line 42 
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    
# Line 540  class RTListBase { Line 541  class RTListBase {
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    
# Line 553  class RTListBase { Line 554  class RTListBase {
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    
# Line 716  class Pool : public RTList<T> { Line 717  class Pool : public RTList<T> {
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

Legend:
Removed from v.3305  
changed lines
  Added in v.3306

  ViewVC Help
Powered by ViewVC