Hi!
Jack API states, that port name is the unique port
identifier.
Although, jackd itself does not check port name uniqueness,
and a
client can create several ports with the same name. Ports
will be
created successfully, but there's no possibility to connect
ports and,
which is more important, no possibility to check, if the
port already
exists.
So, attached patch does the check.
I'd like you to review it, and offer better solution if
possible,
because the patch extends graph lock to the whole
jack_port_register
function. It is needed to avoid possible (but unlikely)
race
condition, if an application creates ports in parallel
threads.
Dmitry.
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jackit-devel mailing list
Jackit-devel lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jackit-dev
el
|