Skip to content

Add multi-threading support in OpenFX#1247

Open
ddennedy wants to merge 8 commits into
masterfrom
openfx-multithread
Open

Add multi-threading support in OpenFX#1247
ddennedy wants to merge 8 commits into
masterfrom
openfx-multithread

Conversation

@ddennedy
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds OpenFX host-side multi-threading support by wiring the OFX OfxMultiThreadSuiteV1 callbacks to MLT’s slice threading (mlt_slices_*) and implementing OFX mutex primitives using pthreads, with thread-local tracking for multiThreadIndex() / multiThreadIsSpawnedThread().

Changes:

  • Implemented multiThread() using mlt_slices_run_normal() and introduced TLS state for thread index/spawned-thread queries.
  • Implemented OFX mutex create/lock/unlock/trylock/destroy using pthread_mutex_t (recursive).
  • Updated multiThreadNumCPUs() to report MLT’s slice count.

Comment thread src/modules/openfx/mlt_openfx.c Outdated
Comment thread src/modules/openfx/mlt_openfx.c
Comment thread src/modules/openfx/mlt_openfx.c Outdated
Comment thread src/modules/openfx/mlt_openfx.c
Comment thread src/modules/openfx/mlt_openfx.c Outdated
Comment thread src/modules/openfx/mlt_openfx.c Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread src/modules/openfx/mlt_openfx.c
Comment thread src/modules/openfx/mlt_openfx.c Outdated
Comment thread src/modules/openfx/CMakeLists.txt Outdated
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