Skip to content

web: update web threads when openroad threads change#10614

Merged
maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
gadfort:web-threads
Jun 9, 2026
Merged

web: update web threads when openroad threads change#10614
maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
gadfort:web-threads

Conversation

@gadfort

@gadfort gadfort commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Track thread count in web overwise it ends up being 1.

Type of Change

  • Bug fix

Impact

Enable multithreading the web

Verification

  • I have verified that the local build succeeds (./etc/Build.sh).
  • I have run the relevant tests and they pass.
  • My code follows the repository's formatting guidelines.
  • I have signed my commits (DCO).

Signed-off-by: Peter Gadfort <gadfort@zeroasic.com>
@gadfort gadfort requested review from a team as code owners June 8, 2026 17:23
@gadfort gadfort requested a review from maliberty June 8, 2026 17:23
@github-actions github-actions Bot added the size/S label Jun 8, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request refactors the WebServer initialization by removing the thread count parameter from its constructor and introducing a setThreadCount method, allowing dynamic updates via OpenRoad::setThreadCount. A review comment suggests initializing the web server's thread count with getThreadCount() immediately after instantiation to ensure it is properly synchronized if the global thread count is configured prior to creation.

Comment thread src/OpenRoad.cc
Signed-off-by: Peter Gadfort <gadfort@zeroasic.com>
@maliberty maliberty merged commit 946b12e into The-OpenROAD-Project:master Jun 9, 2026
16 checks passed
@gadfort gadfort deleted the web-threads branch June 9, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants