Skip to content

Andriod server#2313

Open
Charlie-Zheng wants to merge 6 commits intogenshinsim:mainfrom
Charlie-Zheng:andriod_server
Open

Andriod server#2313
Charlie-Zheng wants to merge 6 commits intogenshinsim:mainfrom
Charlie-Zheng:andriod_server

Conversation

@Charlie-Zheng
Copy link
Copy Markdown
Collaborator

Added a build for andriod server apk.

@Charlie-Zheng Charlie-Zheng force-pushed the andriod_server branch 2 times, most recently from f62f098 to 0c5367c Compare January 24, 2025 00:59
@Charlie-Zheng
Copy link
Copy Markdown
Collaborator Author

This is ready for review

@imring imring added the kind: enhancement New feature or request label Jan 30, 2025
Comment thread pkg/servermode/handler.go

func (s *Server) Progress() map[string]Progress {
progress := make(map[string]Progress)
for id, wk := range s.pool {
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.

s.pool and more specifically, the worker held by s.pool ideally should not be accessed like this. Although you're not doing any write operations here so it probably won't cause any problem, this is still non-ideal. s.pool is not safe for concurrent accesses.

haven't thought about what a better solution would be. possibly some kind of concurrency safe read only method on workers to get the info you want?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Should I run s.Lock() before calling progress?

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

Labels

kind: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants