[prev in list] [next in list] [prev in thread] [next in thread]
List: mtvp-sdk
Subject: Re: question about mtv and threads
From: Tristan Savatier <tristan () mpegtv ! com>
Date: 1998-09-30 19:37:51
[Download RAW message or body]
To subscribers of the mtvp-sdk@mpegtv.com mailing list:
Andrew V. Shuvalov wrote:
>
> Hi,
>
> > > Hi!
> > > What are specific threads of the Player? I have:
> > > 935 p3 R 0:10 mtvp -r11,13,0,0,14,15,0,0
> > > 936 p3 S 0:00 mtvp -r11,13,0,0,14,15,0,0
> > > 937 p3 S 0:01 mtvp -r11,13,0,0,14,15,0,0
> > > 938 p3 S 0:07 mtvp -r11,13,0,0,14,15,0,0
> > > 941 p3 S 0:00 mtvp -r11,13,0,0,14,15,0,0
> >
> > main thread (parse systems stream and decode video)
> > audio thread (decode and play audio)
> > input thread (fills-up the bits in the buffers)
> > display thread (display video) - only in version 1.0.7.2 and later
> > control thread (created by the thread library)
>
> And wich one thread loads my SIH plugin? I guess input thread.
The main thread loads the SIH plugin. The input thread
(started by the main thread) calls only SIH_read.
All the other routines of the SIH plugin are called from the
main thread. But it is guaranteed that SIH_read and another routine
of an SIH plugin are never called concurently (i.e.
at the same time).
In other words, while the input thread is running, only
SIH_read is called.
When another SIH routine must be called (e.g. SIH_lseek), the input
thread
is stopped first, and restarted after the call has returned.
> > > After i try to kill Player, those still remains:
> > >
> > > 937 p3 S 0:01 mtvp -r11,13,0,0,14,15,0,0
> > > 938 p3 S 0:10 mtvp -r11,13,0,0,14,15,0,0
>
> Input thread may be blocked by some select calls?
Yes. the input thread blocks until there is data available on
the fd returned by SIH_fd (or until a private command is issued
by the main thread to the input thread, for example termination
command).
-t
___________________________________________________________
To unsubscribe, send a mailto:mtvp-sdk-request@mpegtv.com
with no subject and "unsubscribe" in the body.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic