factor out the scheduler's queue. switch to clang-format-3.4