Anteru's blog
  • Consulting
  • Research
    • Assisted environment probe placement
    • Assisted texture assignment
    • Error Metrics for Smart Image Refinement
    • High-Quality Shadows for Streaming Terrain Rendering
    • Hybrid Sample-based Surface Rendering
    • Interactive rendering of Giga-Particle Fluid Simulations
    • Quantitative Analysis of Voxel Raytracing Acceleration Structures
    • Real-time Hybrid Hair Rendering
    • Scalable rendering for very large meshes
    • Subpixel Reconstruction Antialiasing
    • Tiled light trees
  • About
  • Archive

Bug in Boost 1.35/Threads, Condition::notify_one

April 10, 2008
  • Programming
approximately 1 minutes to read

There is a bug in Boost.Threads 1.35 (tracked as #1803) – basically, condition::notify_one may fail to wake-up a thread. It is fixed on the trunk (r44150 – thanks Anthony Williams for the quick fix). The bug might not sound that serious, however, it can have serious consequences: I have a thread-pool class which uses it, and because of this bug sometimes a new job didn’t get scheduled properly as all threads were waiting, and a thread remained sleeping although there was a job with no assigned thread. The good thing is that this thread-pool has been already tested with a different condition implementation before (my own ;) ) and it was also prototyped with Python to check for algorithmic mistakes, so I could quickly track it down to be a Boost issue (first time I found a new bug in Boost, and a quite tricky one even). Anyway, before using Boost.Thread in production applications, you might be better off waiting for 1.35.1 or 1.36. Besides this bug, the library seems to work perfectly, couldn’t find any other problem.

Update: Has been fixed in Boost 1.36.

Previous post
Next post

Recent posts

  • Five years of GPU DB
    Posted on 2020-09-27
  • Enabling SSL in your local network
    Posted on 2020-05-17
  • Goodbye, Bitbucket!
    Posted on 2020-03-19
  • QEMU, KVM and trim
    Posted on 2020-01-26
  • Fixing network after Ubuntu 19.04 to 19.10 upgrade
    Posted on 2019-10-26
  • Older posts

Find me on the web

  • GitHub
  • GPU database
  • Projects

Follow me

NIV_Anteru

Contents © 2005-2021 | Anteru | Imprint/Impressum | Privacy policy/Datenschutz