Re: [xml] Clarification regarding Same Null checks in xmlInitThreads(Threads.c)




The fact taht the test is double is absolutely no problem.
For the general principle of those tests,i
  1/ it's to avoid forcing linking to -lpthread by libxml2 while
      using it if the final application uses it
  2/ it uses ELF weak references

it's not simple, depends on the ELF format and compiler specifics.


Thanks for the information....
One final query in the xmlInitThreads function should there be null checks
for pthread_cond_destroy and pthread_cond_wait, or is it ok as it is?
Regards
Ashwin

 
 
 
 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]