Skip to content

Get HLS initialization to its own thread instead of blocking parent thread - #7913

Open
golgetahir wants to merge 11 commits into
masterfrom
hls-thread
Open

golgetahir wants to merge 11 commits into
masterfrom
hls-thread

Conversation

@golgetahir

Copy link
Copy Markdown
Contributor

@golgetahir golgetahir changed the title Carry HLS to new thread Get HLS initialization to its own thread instead of blocking parent thread Jun 29, 2026
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
53.8% Coverage on New Code (required ≥ 80%)
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

private final Object ioLock = new Object();
private volatile CountDownLatch ioDoneLatch;
//the Vert.x worker running the async open/write, so teardown called from that same thread doesn't wait on itself
private volatile Thread ioThread;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not fall back to low-level handcoded threading. We have plenty of threading options on higher level, vertx, spring @async or even executor services. In this case I suggest using executor service

@jantekb jantekb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see the comment on threading

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants