pthread

Pattara Kiatisevi pkiatisevi at student.ei.uni-stuttgart.de
Thu Mar 7 13:42:00 UTC 2002


Hi,

I'm writing a pthread program. In the header I have:

#define CONFIGURE_MAXIMUM_POSIX_THREADS 5
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 5
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 5


Then in Init() I have sth. like:n

 {
    int task_ret;
    task_ret = pthread_create(&audioPlay, NULL, (void *) playAudioTask,
(void *) &taskparameter);
    if (task_ret) {
      perror("pthread_create: playAudioTask");
      exit(EXIT_FAILURE);
    }
  }

The program exited with task_ret = 22. Anybody has the idea what this "22"
means? Do I have to set any #define more in order to have pthread function
worked?

Thank you very much,
Pattara

--
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
----------------------------------------------------------------------
Ott Pattara Kiatisevi 				   T L W G
M.Sc. INFOTECH Student, Stuttgart, Germany	http://linux.thai.net/
----------------------------------------------------------------------




More information about the users mailing list