ccia_code_samples icon indicating copy to clipboard operation
ccia_code_samples copied to clipboard

Appendix C, Listing C9

Open HlodricIB opened this issue 3 years ago • 0 comments

Reading Appendix C, A message-passing framework and complete ATM example, I could not find where the mutex iom is created, which is used in Listing C9, for example here

            incoming.wait()
                .handle<issue_money>(
                    [&](issue_money const& msg)
                    {
                        {
                            std::lock_guard<std::mutex> lk(iom);
                            std::cout<<"Issuing "
                                     <<msg.amount<<std::endl;
                        }
                    }
                    )

Am I missing something?

HlodricIB avatar Dec 13 '21 15:12 HlodricIB