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:
a75f3e49
Parents:
4fe4ea6
git-author:
Dzejrou <dzejrou@…> (2018-03-02 19:55:30)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:20)
Message:

cpp: fixed thread lifetime management as per standard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/impl/thread.hpp

    r4fe4ea6 r063e0626  
    3434#include <ostream>
    3535
     36extern "C" {
     37    #include <fibril.h>
     38    #include <fibril_synch.h>
     39}
     40
    3641namespace std
    3742{
    38     extern "C" {
    39         #include <fibril.h>
    40         #include <fibril_synch.h>
    41     }
    42 
    4343    namespace aux
    4444    {
     
    200200            (*callable)();
    201201
    202             if (callable->detached()) // No thread owns the wrapper.
     202            if (callable->detached())
    203203                delete callable;
    204204
Note: See TracChangeset for help on using the changeset viewer.