cppthread 1.1.16
C++ Thread Library
Todo List
Member cppthread::deswappify (pid_t pid)

Implement necessary check to make sure the data can be swapped back in without causing immediate issues.

Actually write a function that reads all the blocks and save them in a list with a grand total for the size. Then we can make the decision of swapping that process back in or not.

Member cppthread::item_with_predicate::add_dependency (pointer_t dependency)
See whether we could make the predicate any kind of objects with a template?
Member cppthread::logger::get_counter (log_level_t level) const
The counter functions are not thread safe.
Member cppthread::logger::get_errors () const
The counter functions are not thread safe.
Member cppthread::logger::get_warnings () const
The counter functions are not thread safe.
Member cppthread::logger::lock ()
This locking system is not exception safe. If one of the functions called to generate the log message throws, then we will stay locked.
Member cppthread::logger::reset_counters ()
The counter functions are not thread safe.
Member cppthread::pool< W, A >::pool (std::string const &name, std::size_t pool_size, typename worker_fifo_t::pointer_t in, typename worker_fifo_t::pointer_t out, A... args)
We may want to add more threads as the work load increases which could allow for much less unused threads created. To do so we want to (1) time the do_work() function to get an idea of how long a thread takes to perform its work; and (2) have a threshold so we know when the client wants to create new worker threads if the load increases instead of assuming it should happen as soon as data gets added to the input FIFO. The pool_size parameter would then become a max_pool_size.
Member cppthread::thread::is_running () const
We need to save the pid of the process that creates threads. This tells us whether the thread is running in this process. i.e. if a fork() happens, then the child process does not have any threads so is_running() has to return false. Also, any other function that checks whether a thread is running needs to also check the pid. We have to save the pid at the time we start the thread and then when we check whether the thread is running.
Member cppthread::thread::mask_all_signals ()
This won't work well in our test environment. This is due to the fact that there are a few signals that are used by the catch2 and sanitizer tools. See the scoped_signal_mask implementation in libexcept for additional information about this.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.