[info-performer] Performer 3.2 & sproc on IRIX. is there a bug here ?

Date view Thread view Subject view Author view

From: Jean-Christophe Lombardo (Jean-Christophe.Lombardo++at++cstb.fr)
Date: 01/13/2005 03:04:47


Hi,

It seems that release 3.2 of Performer introduce a change of behavior
regarding threads...
I am no more abble to launch a thread with sproc(): the system error 16
(ressource busy) is triggered.
Is there any workaround ?

I am using Performer 3.2 on an Onyx 300 under IRIX 6.5.25

jcl

PS: To show this I modified the common/main.c in
/usr/share/Performer/src/sample/C
I added these lines just before the main:
void threadedFunc(void *data)
{
        while (1) {
                pfNotify(PFNFY_WARN, PFNFY_PRINT,
                        "The thread is still running !");
                sleep(2);
        }
}

and these ones just before entering the Application main loop
        pid_t thread = sproc(threadedFunc, PR_SALL, 0);
        pfNotify(PFNFY_WARN, PFNFY_PRINT,
                "Launched thread %d, oserror is %d.",
                 thread, oserror());
        perror("System says ");

It runs well with performer 3.1.1 but not with 3.2...

-- 
Jean-Christophe Lombardo  - Salle Immersive "Le Corbusier"
Environnements Virtuels Enrichis / Enriched Virtual Environments
Centre Scientifique et Technique du Batiment
290 route des Lucioles - BP 209 - 06904 Sophia Antipolis - France


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jan 13 2005 - 03:03:53 PST