File tree Expand file tree Collapse file tree
sources/jvxLibraries/jvx-app-host/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,8 +27,6 @@ CjvxRequestCommandsHandler::request_command(const CjvxReportCommandRequest& requ
2727 const CjvxReportCommandRequest_uid* ptrReq = nullptr ;
2828 jvxReportCommandRequest reqTpMod = request.request ();;
2929
30- static jvxBool lockedOn = false ;
31-
3230 if (verbose)
3331 {
3432 jvxErrorType resLock = JVX_NO_ERROR;
@@ -39,16 +37,16 @@ CjvxRequestCommandsHandler::request_command(const CjvxReportCommandRequest& requ
3937 resLock = log_stream.hdl ->start_lock (JVX_TEXT_LOG_LOCK_ORIGIN_DEFAULT);
4038 if (resLock == JVX_NO_ERROR)
4139 {
42- assert (lockedOn == false );
43- lockedOn = true ;
4440 out_stream = log_stream.hdl ->log_str ();
4541
4642 // The function still may return a NULL-pointer
4743 if (!out_stream)
4844 {
4945 out_stream = &std::cout;
5046 }
47+ #ifdef JVX_PROFILE_TEXT_LOG_LOCK
5148 log_stream.hdl ->add_tag_lock (" Position #1" );
49+ #endif
5250 }
5351 }
5452 if (out_stream)
@@ -59,8 +57,9 @@ CjvxRequestCommandsHandler::request_command(const CjvxReportCommandRequest& requ
5957 {
6058 if (log_stream.hdl )
6159 {
60+ #ifdef JVX_PROFILE_TEXT_LOG_LOCK
6261 log_stream.hdl ->add_tag_lock (" Position #2" );
63- lockedOn = false ;
62+ # endif
6463 log_stream.hdl ->stop_lock (JVX_TEXT_LOG_LOCK_ORIGIN_DEFAULT);
6564 }
6665 }
You can’t perform that action at this time.
0 commit comments