From: Clemens Ladisch <clemens@ladisch.de>
To: Tobias Schlemmer <keinstein_junior@gmx.net>, alsa-devel@alsa-project.org
Subject: Re: cloning snd_seq_t (or creating one from client id)
Date: Mon, 31 Mar 2014 14:29:27 +0200 [thread overview]
Message-ID: <53395FA7.5050704@ladisch.de> (raw)
In-Reply-To: <53390BC4.5090900@gmx.net>
Tobias Schlemmer wrote:
> I'm surprised that the upcoming version of RtMidi uses one ALSA client
> per MIDI port.
>
> I found out that sequencer handles (snd_seq_t) are not thread safe.
A sequencer client use a common buffer for the events of all ports.
> Could you provide some way to implement multithreaded ALSA clients?
Multiple threads would have to synchronize the buffer accesses in some
way. How exactly merging and distributing of events from/to multiple
ports is handled (even when some thread does not react) is a policy that
cannot be imposed by the ALSA library.
Regards,
Clemens
next prev parent reply other threads:[~2014-03-31 12:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-31 6:31 cloning snd_seq_t (or creating one from client id) Tobias Schlemmer
2014-03-31 12:29 ` Clemens Ladisch [this message]
2014-03-31 14:40 ` Tobias Schlemmer
2014-03-31 21:01 ` Clemens Ladisch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53395FA7.5050704@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=keinstein_junior@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.