Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d6ee5b84
authored
Jul 29, 2020
by
samrobinson
Committed by
Oliver Woodman
Aug 01, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Group overloaded method together.
PiperOrigin-RevId: 323806853
parent
867d45ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
library/core/src/main/java/com/google/android/exoplayer2/PlayerMessage.java
library/core/src/main/java/com/google/android/exoplayer2/PlayerMessage.java
View file @
d6ee5b84
...
...
@@ -293,6 +293,20 @@ public final class PlayerMessage {
}
/**
* Marks the message as processed. Should only be called by a {@link Sender} and may be called
* multiple times.
*
* @param isDelivered Whether the message has been delivered to its target. The message is
* considered as being delivered when this method has been called with {@code isDelivered} set
* to true at least once.
*/
public
synchronized
void
markAsProcessed
(
boolean
isDelivered
)
{
this
.
isDelivered
|=
isDelivered
;
isProcessed
=
true
;
notifyAll
();
}
/**
* Blocks until after the message has been delivered or the player is no longer able to deliver
* the message or the specified waiting time elapses.
*
...
...
@@ -314,20 +328,6 @@ public final class PlayerMessage {
return
experimental_blockUntilDelivered
(
timeoutMs
,
Clock
.
DEFAULT
);
}
/**
* Marks the message as processed. Should only be called by a {@link Sender} and may be called
* multiple times.
*
* @param isDelivered Whether the message has been delivered to its target. The message is
* considered as being delivered when this method has been called with {@code isDelivered} set
* to true at least once.
*/
public
synchronized
void
markAsProcessed
(
boolean
isDelivered
)
{
this
.
isDelivered
|=
isDelivered
;
isProcessed
=
true
;
notifyAll
();
}
@VisibleForTesting
()
/* package */
synchronized
boolean
experimental_blockUntilDelivered
(
long
timeoutMs
,
Clock
clock
)
throws
InterruptedException
,
TimeoutException
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment