TQFactory.cpp 400 B

1234567891011121314151617181920212223
  1. //
  2. // TQFactory.cpp
  3. // LibDriveRating-CXX
  4. //
  5. // Created by Melo Yao on 6/10/14.
  6. // Copyright (c) 2014 AutoNavi. All rights reserved.
  7. //
  8. #include "TQFactory.h"
  9. #include "ThreadTaskQueue.h"
  10. namespace tq {
  11. IQueue* TQFactory::CreateDefaultQueue()
  12. {
  13. return new ThreadTaskQueue();
  14. }
  15. void TQFactory::ReleaseQueue(IQueue* queue)
  16. {
  17. delete queue;
  18. }
  19. }