-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Semaphore shm split patch #2390
Conversation
Thanks. You'll want to re-base against master so that @M374LX's Mixer cleanup doesn't show up in the commit. To put this PR in context, this is inspired by #1875 and supersedes #2304 (closed without merging). The intention is to make the code more readable and (AFAIK) allow the easy enabling of |
@Narfinger it looks like Linux has an unused variable per Travis:
|
Yes I noticed it too. Let's see if I got everything or if Travis still has something it doesn't like. |
Minor, but I noticed some of our abreviated classnames use all-uppercase and some dont... For example: @lukas-w should the |
I can change that if you want. Just tell me. |
I can't see any consistency in our existing code, so either way would be fine. Though |
I renamed the files, so if travis passes this is ready to be merged. |
@Narfinger thanks, this makes the code much easier to read. From a functionality perspective, we'll need some testing on the Linux and Windows side prior to merging this. Before we merge it, we should squash down the commits as well. |
this simplifies the code in RemotePlugin.h greatly by splitting various ifdef for ShMem and Semaphores
I just merged the commits. Sadly I cannot test this because I don't have windows and I am effected by the archlinux VST Bug. |
Wine can be used for testing too. The Windows installers are actually built on Linux currently, but someone else can chime in with test results if you prefer. Since we didn't touch the CMakeLists.txt at all, will this fix the Arch VST issue, or is this just a preliminary code cleanup step? P.S. Sorry, accidentally clicked close on mobile. |
@Umcaruje was asking if he could use this patch on his system to fix a similar VST crash but we're not sure how to enable it. Please let us know so we can decide what's needed prior to merge. 👍 |
I am slightly confused. This branch just splits the two things into managable chunks. I did not yet implement the switching to qt part. In essence this is just using defining the #define USE_QT_SHMEM and #define USE_QT_SEMAPHORES additionally, you need to link and include the correct Qt parts in plugins/vst_base/CMakeList.txt |
Ok that clears it up. Once we have good test results, we can merge. Thanks for clarification. |
Can you test it for ab64c67 (which is the commit before my change). I really cannot imagine that this changed any functionality. As I mentioned earlier, I sadly cannot help to debug this feature as I only have access to an archlinux system. |
The master I tested was pulled today... I'm not sure what you are asking.
If I can get an Arch VM up and running to confirm the Arch bug, surely you can do so with an Ubuntu 12.04 box to confirm this one. |
Ok I will try to see what is going on. |
Well, according to the issue description, yes the software could benefit from a reduce source complexity, but we can reopen at a later time. 👍
|
Splitted the semaphore and SharedMemory from Remoteplugin.h into separate wrapper header files so RemotePlugin.h does not have that many #ifdefs.