Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 852
    • Issues 852
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 40
    • Merge requests 40
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !1655

WIP: Enable static builds on Windows using TLS callbacks

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Luca Bacci requested to merge lb90/glib:static-build-support-on-windows-using-tls-callbacks into main Sep 17, 2020
  • Overview 45
  • Commits 7
  • Pipelines 5
  • Changes 13

This is a follow-up from !1316 (closed)

This MR addresses the remaining points in !1316 (closed). For per-thread cleanup (needed for GPrivate) it uses TLS callbacks, as suggested in !1316 (comment 730444).

TLS callbacks are a feature of the OS/loader/PE format to get notifications about thread start and termination (and are executed in the context of the starting/terminating thread, of course). That way we can cleanup GPrivate data for every thread, even if it was not created by GLib.

Edited Sep 18, 2020 by Luca Bacci
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: static-build-support-on-windows-using-tls-callbacks