Ignore:
Timestamp:
2019-05-28T19:24:14Z (5 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
77de449e
Parents:
af5037d (diff), bebd154 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-05-28 19:24:14)
git-committer:
GitHub <noreply@…> (2019-05-28 19:24:14)
Message:

Merge pull request #161 from le-jzr/cxxcompat2

C++ compatibility improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/pthread.h

    raf5037d r52acfab  
    3434
    3535#include <time.h>
     36#include <_bits/decls.h>
     37
     38#define PTHREAD_MUTEX_RECURSIVE 1
     39
     40#define PTHREAD_MUTEX_INITIALIZER { 0 }
     41
     42#define PTHREAD_COND_INITIALIZER { 0 }
     43
     44__C_DECLS_BEGIN;
    3645
    3746typedef void *pthread_t;
     
    4352typedef int pthread_key_t;
    4453
    45 #define PTHREAD_MUTEX_RECURSIVE 1
    46 
    4754typedef struct pthread_mutex {
    4855        int dummy;
    4956} pthread_mutex_t;
    50 
    51 #define PTHREAD_MUTEX_INITIALIZER { 0 }
    5257
    5358typedef struct {
     
    6267        int dummy;
    6368} pthread_cond_t;
    64 
    65 #define PTHREAD_COND_INITIALIZER { 0 }
    6669
    6770extern pthread_t pthread_self(void);
     
    106109extern int pthread_key_create(pthread_key_t *, void (*)(void *));
    107110
     111__C_DECLS_END;
     112
    108113#endif
    109114
Note: See TracChangeset for help on using the changeset viewer.