- Timestamp:
- 02/16/07 02:35:25 (16 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/streaming-rework/src/libstreaming/StreamProcessorManager.cpp
r391 r395 905 905 it != m_ReceiveProcessors.end(); 906 906 ++it ) { 907 908 //#ifdef DEBUG909 #if 0910 {911 uint64_t ts_tail=0;912 uint64_t fc_tail=0;913 907 914 uint64_t ts_head=0;915 uint64_t fc_head=0;916 917 int cnt=0;918 919 (*it)->getBufferHeadTimestamp(&ts_head,&fc_head);920 (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail);921 922 while((fc_head != fc_tail) && (cnt++ < 10)) {923 (*it)->getBufferHeadTimestamp(&ts_head,&fc_head);924 (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail);925 }926 927 debugOutput(DEBUG_LEVEL_VERBOSE,"R => HEAD: TS=%11llu, FC=%5llu | TAIL: TS=%11llu, FC=%5llu, %d\n",928 ts_head, fc_head, ts_tail, fc_tail, cnt);929 }930 #endif931 932 908 if(!(*it)->getFrames(m_period)) { 933 909 debugOutput(DEBUG_LEVEL_VERBOSE,"could not getFrames(%u, %11llu) from stream processor (%p)", … … 935 911 return false; // buffer underrun 936 912 } 937 938 //#ifdef DEBUG 939 #if 0 940 { 941 uint64_t ts_tail=0; 942 uint64_t fc_tail=0; 943 944 uint64_t ts_head=0; 945 uint64_t fc_head=0; 946 947 int cnt=0; 948 949 (*it)->getBufferHeadTimestamp(&ts_head,&fc_head); 950 (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail); 951 952 while((fc_head != fc_tail) && (cnt++ < 10)) { 953 (*it)->getBufferHeadTimestamp(&ts_head,&fc_head); 954 (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail); 955 } 956 957 debugOutput(DEBUG_LEVEL_VERBOSE,"R > HEAD: TS=%11llu, FC=%5llu | TAIL: TS=%11llu, FC=%5llu, %d\n", 958 ts_head, fc_head, ts_tail, fc_tail, cnt); 959 } 960 #endif 961 913 962 914 } 963 915 } else { … … 965 917 it != m_TransmitProcessors.end(); 966 918 ++it ) { 967 968 //#ifdef DEBUG969 #if 0970 {971 uint64_t ts_tail=0;972 uint64_t fc_tail=0;973 974 uint64_t ts_head=0;975 uint64_t fc_head=0;976 977 int cnt=0;978 979 (*it)->getBufferHeadTimestamp(&ts_head,&fc_head);980 (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail);981 982 while((fc_head != fc_tail) && (cnt++ < 10)) {983 (*it)->getBufferHeadTimestamp(&ts_head,&fc_head);984 (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail);985 }986 987 debugOutput(DEBUG_LEVEL_VERBOSE,"T => HEAD: TS=%11llu, FC=%5llu | TAIL: TS=%11llu, FC=%5llu, %d\n",988 ts_head, fc_head, ts_tail, fc_tail, cnt);989 }990 #endif991 919 992 920 if(!(*it)->putFrames(m_period, (int64_t)m_time_of_transfer)) { … … 995 923 return false; // buffer overrun 996 924 } 997 998 //#ifdef DEBUG 999 #if 0 1000 { 1001 uint64_t ts_tail=0; 1002 uint64_t fc_tail=0; 1003 1004 uint64_t ts_head=0; 1005 uint64_t fc_head=0; 1006 1007 int cnt=0; 1008 1009 (*it)->getBufferHeadTimestamp(&ts_head,&fc_head); 1010 (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail); 1011 1012 while((fc_head != fc_tail) && (cnt++ < 10)) { 1013 (*it)->getBufferHeadTimestamp(&ts_head,&fc_head); 1014 (*it)->getBufferTailTimestamp(&ts_tail,&fc_tail); 1015 } 1016 1017 debugOutput(DEBUG_LEVEL_VERBOSE,"T > HEAD: TS=%11llu, FC=%5llu | TAIL: TS=%11llu, FC=%5llu, %d\n", 1018 ts_head, fc_head, ts_tail, fc_tail, cnt); 1019 } 1020 #endif 925 1021 926 } 1022 927 }