crossroads

Git mirror of https://crossroads.e-tunity.com/
git clone git://git.finwo.net/app/crossroads
Log | Files | Refs | LICENSE

balance.cc (167B)


      1 #include "mutexnode"
      2 
      3 int MutexNode::balance() const {
      4     int lw = left() ? left()->weight() : 0;
      5     int rw = right() ? right()->weight() : 0;
      6     return lw - rw;
      7 }