|
|
|
|
|
by n0tank3sh
675 days ago
|
|
It really depends on the case. Some folks use the left-pad library for aligning, which can be done in 10 minutes. In C++, we have header libraries for thread pools, etc. I don't think implementing a fully functional thread pool with waiting and other features is an easy task. In conclusion, it really depends on the situation. |
|
If you don't need anything else, and having the linker not include unused code isn't good enough, then just vendor the single function.
There could still be some special case but that will need a lot of explaining to justify and will be such an exception that it is silly to talk about. There are legitimate one time freak exceptions to every principle. It means nothing.