YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.upnp.server.openhome.AndroidOhThreads Class Reference

The threads of the OpenHome renderer on Android: one worker thread that does the renderer's work one task after the other, and the main thread for the player (media3 players insist on it). More...

Inheritance diagram for de.yaacc.upnp.server.openhome.AndroidOhThreads:
Inheritance graph
Collaboration diagram for de.yaacc.upnp.server.openhome.AndroidOhThreads:
Collaboration graph

Public Member Functions

void work (Runnable work)
 Runs the work on the worker thread, after what was handed over before.
 
void lifecycle (Runnable work)
 As work(Runnable) for the start and the end of the renderer: it must run even when the worker is flooded with the work of control points (which may be dropped then).
 
void runLater (Runnable runnable, long delayMillis)
 
Runnable every (Runnable work, long periodMillis)
 Runs the work on the worker thread again and again; the result stops it.
 
void close ()
 Runs what is queued, then ends the worker.
 
- Public Member Functions inherited from de.yaacc.upnp.server.openhome.OpenHomeRenderer.Threads
- Public Member Functions inherited from de.yaacc.upnp.server.openhome.OhRendererCore.Delayer

Detailed Description

The threads of the OpenHome renderer on Android: one worker thread that does the renderer's work one task after the other, and the main thread for the player (media3 players insist on it).

The worker waits for the main thread, never the other way round.

Member Function Documentation

◆ close()

void de.yaacc.upnp.server.openhome.AndroidOhThreads.close ( )

Runs what is queued, then ends the worker.

Implements de.yaacc.upnp.server.openhome.OpenHomeRenderer.Threads.

◆ every()

Runnable de.yaacc.upnp.server.openhome.AndroidOhThreads.every ( Runnable work,
long periodMillis )

Runs the work on the worker thread again and again; the result stops it.

Implements de.yaacc.upnp.server.openhome.OpenHomeRenderer.Threads.

Here is the call graph for this function:

◆ lifecycle()

void de.yaacc.upnp.server.openhome.AndroidOhThreads.lifecycle ( Runnable work)

As work(Runnable) for the start and the end of the renderer: it must run even when the worker is flooded with the work of control points (which may be dropped then).

Implements de.yaacc.upnp.server.openhome.OpenHomeRenderer.Threads.

Here is the call graph for this function:

◆ runLater()

void de.yaacc.upnp.server.openhome.AndroidOhThreads.runLater ( Runnable runnable,
long delayMillis )

◆ work()

void de.yaacc.upnp.server.openhome.AndroidOhThreads.work ( Runnable work)

Runs the work on the worker thread, after what was handed over before.

Returns at once.

Implements de.yaacc.upnp.server.openhome.OpenHomeRenderer.Threads.

Referenced by de.yaacc.upnp.server.openhome.AndroidOhThreads.every(), de.yaacc.upnp.server.openhome.AndroidOhThreads.lifecycle(), and de.yaacc.upnp.server.openhome.AndroidOhThreads.work().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: