@@ -24,55 +24,55 @@ template <typename T>
2424void FlagApi<T>::AddPreprocessorFlag(const std::string &flag) {
2525 T &t =static_cast <T &>(*this );
2626
27- t.state_ .ExpectsUnlock ();
27+ t.lock_ .ExpectsUnlock (__FUNCTION__ );
2828 t.user_ .preprocessor_flags .insert (flag);
2929}
3030template <typename T>
3131void FlagApi<T>::AddCommonCompileFlag(const std::string &flag) {
3232 T &t =static_cast <T &>(*this );
3333
34- t.state_ .ExpectsUnlock ();
34+ t.lock_ .ExpectsUnlock (__FUNCTION__ );
3535 t.user_ .common_compile_flags .insert (flag);
3636}
3737template <typename T>
3838void FlagApi<T>::AddPchCompileFlag(const std::string &flag) {
3939 T &t =static_cast <T &>(*this );
4040
41- t.state_ .ExpectsUnlock ();
41+ t.lock_ .ExpectsUnlock (__FUNCTION__ );
4242 t.user_ .pch_compile_flags .insert (flag);
4343}
4444template <typename T>
4545void FlagApi<T>::AddPchObjectFlag(const std::string &flag) {
4646 T &t =static_cast <T &>(*this );
4747
48- t.state_ .ExpectsUnlock ();
48+ t.lock_ .ExpectsUnlock (__FUNCTION__ );
4949 t.user_ .pch_object_flags .insert (flag);
5050}
5151template <typename T>
5252void FlagApi<T>::AddAsmCompileFlag(const std::string &flag) {
5353 T &t =static_cast <T &>(*this );
5454
55- t.state_ .ExpectsUnlock ();
55+ t.lock_ .ExpectsUnlock (__FUNCTION__ );
5656 t.user_ .asm_compile_flags .insert (flag);
5757}
5858template <typename T>
5959void FlagApi<T>::AddCCompileFlag(const std::string &flag) {
6060 T &t =static_cast <T &>(*this );
6161
62- t.state_ .ExpectsUnlock ();
62+ t.lock_ .ExpectsUnlock (__FUNCTION__ );
6363 t.user_ .c_compile_flags .insert (flag);
6464}
6565template <typename T>
6666void FlagApi<T>::AddCppCompileFlag(const std::string &flag) {
6767 T &t =static_cast <T &>(*this );
6868
69- t.state_ .ExpectsUnlock ();
69+ t.lock_ .ExpectsUnlock (__FUNCTION__ );
7070 t.user_ .cpp_compile_flags .insert (flag);
7171}
7272template <typename T>void FlagApi<T>::AddLinkFlag(const std::string &flag) {
7373 T &t =static_cast <T &>(*this );
7474
75- t.state_ .ExpectsUnlock ();
75+ t.lock_ .ExpectsUnlock (__FUNCTION__ );
7676 t.user_ .link_flags .insert (flag);
7777}
7878