msgPumpRun 200 B

123456789101112131415161718
  1. # -*- mode: snippet -*-
  2. # name: msg run method
  3. # key: msgPumpRun
  4. # group: col
  5. # --
  6. while(true)
  7. {
  8. FunT fun;
  9. ${1:itsQueue_.pop(fun)};
  10. if( fun && !fun() )
  11. {
  12. break;
  13. }
  14. }