Re: AOO plugin for PD on SGI Irix

Wolfgang Gaggl via Pd-list <[email protected]> Sun, 19 Jul 2026 17:37:56 -0000
Newsgroups gmane.comp.multimedia.puredata.general
Message-ID <[email protected]>
Given that it's coming from a blocked lock, I have added a bounded retry to both source.cpp and sink.cpp:

shared_lock lock(update_mutex_, sync::try_to_lock); // reader lock!
#if defined(__sgi) && defined(__mips__)
    for (int i = 0; !lock.owns_lock() && i < kIrixReadTryLockRetries; ++i) {
        sync::pause_cpu();
        if ((i & 7) == 7) {
            std::this_thread::yield();
        }
        lock = shared_lock(update_mutex_, sync::try_to_lock);
    }
#endif
    if (!lock.owns_lock()){
---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/XFXX3QJFPJAVFUPD7SGD72NHPRLHUAU5/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/