Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pthread_condattr_setpshared



Continuing in the vein of the pthread_cond_signal thread...

POSIX also discusses a process-shared attribute:

  The process-shared attribute is set to PTHREAD_PROCESS_SHARED to
  permit a condition variable to be operated upon by any thread
  that has access to the memory where the condition variable is
  allocated, even if the condition variable is allocated in memory
  that is shared by multiple processes.

with more details in:

  https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_09

This isn't something we support, but it cropped up in the context of
gfortran:

  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124512

It wasn't clear that it was necessary, just that FreeBSD has it.
I'm not sure what "it" is? Discuss :-)


Cheers,

Patrick


Home | Main Index | Thread Index | Old Index