I currently use boost lockguard as follows however I am still a little confused regarding the use of curly braces.I wanted to know if these two are the same

```
void ThreadSafeMethod()
{
   {//Begin Lock
      boost::lock_guard<boost::mutex> lock(mutex_lock_symbol);
      ....
      ....
   }//End Lock
}

```

or this method which eliminates one one layer of curly braces. Is this correct and the same as above ?

```
void ThreadSafeMethod()
{//Locks automatically 
      boost::lock_guard<boost::mutex> lock(mutex_lock_symbol);
}//Unlocks

```