1 /*********************************************************************** 2 * Copyright (c) 2002 Marcus Overhagen. All Rights Reserved. 3 * This file may be used under the terms of the MIT License. 4 * 5 ***********************************************************************/ 6 #ifndef _TIME_SOURCE_OBJECT_MANAGER_H_ 7 #define _TIME_SOURCE_OBJECT_MANAGER_H_ 8 9 #include "TMap.h" 10 11 namespace BPrivate { 12 namespace media { 13 14 class TimeSourceObjectManager 15 { 16 public: 17 TimeSourceObjectManager(); 18 ~TimeSourceObjectManager(); 19 20 BTimeSource *GetTimeSource(const media_node &node); 21 void ObjectDeleted(BTimeSource *timesource); 22 23 private: 24 Map<media_node_id,BTimeSource *> *fMap; 25 BLocker *fLock; 26 }; 27 28 }; // namespace media 29 }; // namespace BPrivate 30 31 extern BPrivate::media::TimeSourceObjectManager *_TimeSourceObjectManager; 32 33 #endif 34