Ignore:
Timestamp:
2019-07-02T14:00:28Z (5 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ab9df4
Parents:
d3ba97d
Message:

cpp: moved all the at_exit logic to two functions which are to be implemented later to avoid TODO duplication throughout the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/__bits/thread/shared_state.hpp

    rd3ba97d r72786f38  
    371371            }
    372372    };
     373
     374    /**
     375     * Note: The following two functions should:
     376     *   1) Increment refcount.
     377     *   2) Store ptr to a vector of shared_state_base ptrs
     378     *      (as those have ::mark_set member functions).
     379     *   3) If not done already, register a function
     380     *      executing all these in the thread_atexit function
     381     *      once that is implemented.
     382     */
     383
     384    template<class R>
     385    void set_state_value_at_thread_exit(shared_state<R>* state)
     386    {
     387        // TODO: implement
     388    }
     389
     390    template<class R>
     391    void set_state_exception_at_thread_exit(shared_state<R>* state)
     392    {
     393        // TODO: implement
     394    }
    373395}
    374396
Note: See TracChangeset for help on using the changeset viewer.