Summary: | Deprecate header inclusion of pthread.h and add a define option to disable inclusion of pthread.h | ||
---|---|---|---|
Product: | XCB | Reporter: | Steven Stewart-Gallus <sstewartgallus00> |
Component: | Library | Assignee: | xcb mailing list dummy <xcb> |
Status: | RESOLVED MOVED | QA Contact: | xcb mailing list dummy <xcb> |
Severity: | normal | ||
Priority: | lowest | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Steven Stewart-Gallus
2014-06-15 02:54:16 UTC
We can't just remove it, as xcb uses the pthread synchronization functions heavily internally, though it could possibly be moved from xcb.h to xcbint.h. We do provide stubs for use in single-threaded programs that don't need thread safety: http://cgit.freedesktop.org/xcb/pthread-stubs/ Alan, XCB's internal use of pthread's is not a problem. XCB's internal uses of the headers would simply not define "XCB_NO_INCLUDE_PTHREAD" and everything would work as it does today. Only far off in the future when "XCB_NO_INCLUDE_PTHREAD" is made the default would the pthread.h inclusion have to be moved to xcbint.h. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/lib/libxcb/issues/7. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.