Skip to content

Changed ControlObjectThreadMain instances to ControlObjectThread where no direct connection is used.#43

Merged
daschuer merged 7 commits into
mixxxdj:masterfrom
daschuer:atomic-co3
Oct 11, 2013
Merged

Changed ControlObjectThreadMain instances to ControlObjectThread where no direct connection is used.#43
daschuer merged 7 commits into
mixxxdj:masterfrom
daschuer:atomic-co3

Conversation

@daschuer
Copy link
Copy Markdown
Member

According to our previous discussion ControlObjectThreadMain ensures that the valueChanged signals are propagated by the Main Thread. This makes a different, when Qt::DirectConnection is used in the using code.

I have checked all occurrences of ControlObjectThreadMain and changed them to ControlObjectThread if no direct connection is used. Most of them does not use any connection. So we save a unnecessary round trip thought the Qt event queue.

If my other refactoring branch #38 is accepted, we can change most (or all) of them to ControlObjectSlave. This will save some direct connected function calls ass well because it is optimized for no connection.

daschuer added 3 commits July 11, 2013 22:47
ControlObjectThread if no direct connection is used.
ControlObjectThread where no direct connection is used.
Comment thread src/basetrackplayer.cpp
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.

saves memory allocation.

@daschuer
Copy link
Copy Markdown
Member Author

daschuer commented Oct 1, 2013

This patch is starting to rod. I would like to have a second pair of eyes to confirm my changes.
If there are non available I will commit it without a review.
Since this patch touches 54 files, which merges should be done before?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If setup() is not called yet, this will segfault. Shouldn't the NULL check stay (for enabled(), start() and end()) as a safety?

@rryan
Copy link
Copy Markdown
Member

rryan commented Oct 11, 2013

LGTM other than my comment about WaveformMarkRange. Thank you!

Conflicts:
	src/dlgprefcontrols.cpp
	src/dlgprefrecord.cpp
	src/dlgprefrecord.h
	src/widget/wnumberpos.h
@daschuer
Copy link
Copy Markdown
Member Author

Thank you for review!

daschuer added a commit that referenced this pull request Oct 11, 2013
Changed ControlObjectThreadMain instances to ControlObjectThread where no direct connection is used.
@daschuer daschuer merged commit 955e5a4 into mixxxdj:master Oct 11, 2013
@daschuer daschuer deleted the atomic-co3 branch December 6, 2014 23:57
@daschuer daschuer mentioned this pull request Dec 28, 2014
@daschuer daschuer mentioned this pull request Jun 11, 2018
11 tasks
ronso0 referenced this pull request in ronso0/mixxx Nov 6, 2019
implement Aux,master in skins, hide unconfigured Mic units
ronso0 referenced this pull request in ronso0/mixxx May 14, 2020
put Cue Shift buttons below CurPos button
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