Changeset ecb072d in mainline for uspace/lib/cpp/src/mutex.cpp


Ignore:
Timestamp:
2018-07-05T21:41:20Z (7 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
392b0ab3
Parents:
5e5498e
git-author:
Dzejrou <dzejrou@…> (2018-03-03 02:56:48)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:20)
Message:

cpp: mutex native handles are now pointers so that we avoid copying on retrieval

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/src/mutex.cpp

    r5e5498e recb072d  
    6868    mutex::native_handle_type mutex::native_handle()
    6969    {
    70         return mtx_;
     70        return &mtx_;
    7171    }
    7272
     
    121121    recursive_mutex::native_handle_type recursive_mutex::native_handle()
    122122    {
    123         return mtx_;
     123        return &mtx_;
    124124    }
    125125}
Note: See TracChangeset for help on using the changeset viewer.