Skip to content

Open cloud audio - #9863

Merged
kryksyh merged 6 commits into
audacity:audacity3from
kryksyh:open_cloud_audio_from_mobile
Nov 17, 2025
Merged

kryksyh merged 6 commits into
audacity:audacity3from
kryksyh:open_cloud_audio_from_mobile

Conversation

@kryksyh

@kryksyh kryksyh commented Nov 12, 2025 •

Copy link
Copy Markdown
Member

Resolves: #9776, #9874, #9862

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Autobot test cases have been run

@kryksyh kryksyh self-assigned this Nov 12, 2025
@kryksyh
kryksyh force-pushed the open_cloud_audio_from_mobile branch from e9a5eca to 2c267c9 Compare November 12, 2025 15:20
Comment on lines +59 to +64
mStopRequested = true;

if (mPollingThread.joinable())
{
mPollingThread.detach();
}

@embarc-gabriel embarc-gabriel Nov 12, 2025 •

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.

Shouldn't it just call Stop() and then detach instead?
I mean, imagine this scenario:
PollingThread tests mStopRequested in the while loop, which is false, for example. It enters the code inside, and then the destructor is called, and it sets mStopRequested to true. But the code PollingThread is still being executed and will test the atomic variable just on the next iteration.
This can be a problem, in my opinion.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, you are right, the thing is that it is called on the app shutdown, and there is not much time to wait for the thread stop. I'll add a small timeout.

@kryksyh
kryksyh force-pushed the open_cloud_audio_from_mobile branch 3 times, most recently from f1a1227 to 968d9a5 Compare November 13, 2025 07:41
@dozzzzer dozzzzer linked an issue Nov 13, 2025 that may be closed by this pull request
@kryksyh
kryksyh force-pushed the open_cloud_audio_from_mobile branch from 968d9a5 to d0b9138 Compare November 13, 2025 11:24
@kryksyh
kryksyh force-pushed the open_cloud_audio_from_mobile branch from d0b9138 to e8063f8 Compare November 13, 2025 12:03
@kryksyh
kryksyh force-pushed the open_cloud_audio_from_mobile branch from de0533b to 3c06451 Compare November 14, 2025 12:18
@kryksyh
kryksyh merged commit f062f0d into audacity:audacity3 Nov 17, 2025
@kryksyh
kryksyh deleted the open_cloud_audio_from_mobile branch November 17, 2025 11:52
@coderabbitai coderabbitai Bot mentioned this pull request Jul 31, 2026
10 of 12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants