I am using libremidi for my audio application using Jack on Linux-RT. I create a Jack audio client, then pass it to libremidi as shown in the jack_share.cpp example. However performance is very poor due to the thread_lock semaphore syscalls that happen every block.
I am not sure what the best approach is for closing/unregistering the port safely. Here is a patch I am using for now to remove the syscalls.
libremidi-lock-patch.patch
I am using libremidi for my audio application using Jack on Linux-RT. I create a Jack audio client, then pass it to libremidi as shown in the jack_share.cpp example. However performance is very poor due to the thread_lock semaphore syscalls that happen every block.
I am not sure what the best approach is for closing/unregistering the port safely. Here is a patch I am using for now to remove the syscalls.
libremidi-lock-patch.patch