Skip to content

Is main-thread intended to be the same for all instances of a plugin? #435

Answered by baconpaul
alien-brother asked this question in Q&A
Discussion options

You must be logged in to vote

The documentation talks about main thread as “the” thread and there is certainly the assumption that at a given moment only one thread is the main thread. So even though the documentation doesn’t say this, I believe that within a single process boundary on Linux you can assume main thread functions are always executed in a single threaded fashion (even though a host may I suppose choose to migrate its main thread)

if my colleagues agree I propose we expand the thread check documentation to include this fact since the Linux ui is not similarly single threaded architecturally (as I’m sure you know hence the question)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alien-brother
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants