1#include "../Mutex.h"
2
3class Request
4{
5 public:
6  void process() // __attribute__ ((noinline))
7  {
8    muduo::MutexLockGuard lock(mutex_);
9    print();
10  }
11
12  void print() const // __attribute__ ((noinline))
13  {
14    muduo::MutexLockGuard lock(mutex_);
15  }
16
17 private:
18  mutable muduo::MutexLock mutex_;
19};
20
21int main()
22{
23  Request req;
24  req.process();
25}
26