Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
F
fontconfig
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 152
    • Issues 152
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 16
    • Merge Requests 16
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • fontconfig
  • fontconfig
  • Merge Requests
  • !166

Open
Opened Jan 17, 2021 by Jacko Dirks@jacko.dirksContributor
  • Report abuse
Report abuse

Merge similar mutex code

  • Overview 1
  • Commits 3
  • Pipelines 1
  • Changes 6

The files src/fccache.c and src/fccfg.c contained very similar mutex-related code. This code is now placed in src/fcmutex.c.

I also concluded that the additional call to FcRandom during mutex creation was not required, and therefore I removed it. This simplified the logic, so that a goto could be replaced with a do-while.

Finally, there is the FC_MUTEX_IMPL_INIT macro. This macro can be used to initialize a mutex compile-time, but unfortunately not on Windows. This macro was unused and is therefore removed.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: fontconfig/fontconfig!166
Source branch: merge_similar_mutex_code