LLVM OpenMP 19.0.0git
Classes | Macros | Typedefs | Enumerations | Functions | Variables
kmp_detach_tasks_t3.c File Reference
#include <stdio.h>
#include <omp.h>
#include "omp_my_sleep.h"

Go to the source code of this file.

Classes

struct  ID
 
struct  ident
 The ident structure that describes a source location. More...
 
struct  kmp_event_t
 
struct  shar
 
struct  task
 
struct  DEP
 

Macros

#define PTASK_FLAG_DETACHABLE   0x40
 

Typedefs

typedef unsigned long long kmp_uint64
 
typedef long long kmp_int64
 
typedef struct ID id
 
typedef struct ident ident_t
 
typedef enum kmp_event_type_t kmp_event_type_t
 
typedef struct sharpshareds
 
typedef struct taskptask
 
typedef struct task kmp_task_t
 
typedef struct DEP dep
 
typedef int(* task_entry_t) (int, ptask)
 

Enumerations

enum  kmp_event_type_t {
  KMP_EVENT_UNINITIALIZED = 0 , KMP_EVENT_ALLOW_COMPLETION = 1 , KMP_EVENT_UNINITIALIZED = 0 , KMP_EVENT_ALLOW_COMPLETION = 1 ,
  KMP_EVENT_UNINITIALIZED = 0 , KMP_EVENT_ALLOW_COMPLETION = 1 , KMP_EVENT_UNINITIALIZED = 0 , KMP_EVENT_ALLOW_COMPLETION = 1 ,
  KMP_EVENT_UNINITIALIZED = 0 , KMP_EVENT_ALLOW_COMPLETION = 1
}
 

Functions

int __kmpc_global_thread_num (void *id_ref)
 
int ** __kmpc_omp_task_alloc (id *loc, int gtid, int flags, size_t sz, size_t shar, task_entry_t rtn)
 
int __kmpc_omp_task_with_deps (id *loc, int gtid, ptask task, int nd, dep *dep_lst, int nd_noalias, dep *noalias_dep_lst)
 
int __kmpc_omp_task (id *loc, int gtid, kmp_task_t *task)
 
omp_event_handle_t __kmpc_task_allow_completion_event (ident_t *loc_ref, int gtid, kmp_task_t *task)
 
int task_entry (int gtid, ptask task)
 
int main ()
 

Variables

int volatile checker
 

Macro Definition Documentation

◆ PTASK_FLAG_DETACHABLE

#define PTASK_FLAG_DETACHABLE   0x40

Definition at line 11 of file kmp_detach_tasks_t3.c.

Typedef Documentation

◆ dep

typedef struct DEP dep

◆ id

typedef struct ID id

◆ ident_t

typedef struct ident ident_t

◆ kmp_event_type_t

◆ kmp_int64

typedef long long kmp_int64

Definition at line 15 of file kmp_detach_tasks_t3.c.

◆ kmp_task_t

typedef struct task kmp_task_t

◆ kmp_uint64

typedef unsigned long long kmp_uint64

Definition at line 14 of file kmp_detach_tasks_t3.c.

◆ pshareds

typedef struct shar * pshareds

◆ ptask

typedef struct task * ptask

◆ task_entry_t

typedef int(* task_entry_t) (int, ptask)

Definition at line 62 of file kmp_detach_tasks_t3.c.

Enumeration Type Documentation

◆ kmp_event_type_t

Enumerator
KMP_EVENT_UNINITIALIZED 
KMP_EVENT_ALLOW_COMPLETION 
KMP_EVENT_UNINITIALIZED 
KMP_EVENT_ALLOW_COMPLETION 
KMP_EVENT_UNINITIALIZED 
KMP_EVENT_ALLOW_COMPLETION 
KMP_EVENT_UNINITIALIZED 
KMP_EVENT_ALLOW_COMPLETION 
KMP_EVENT_UNINITIALIZED 
KMP_EVENT_ALLOW_COMPLETION 

Definition at line 30 of file kmp_detach_tasks_t3.c.

Function Documentation

◆ __kmpc_global_thread_num()

int __kmpc_global_thread_num ( void id_ref)

Referenced by main().

◆ __kmpc_omp_task()

int __kmpc_omp_task ( id loc,
int  gtid,
kmp_task_t task 
)

◆ __kmpc_omp_task_alloc()

int ** __kmpc_omp_task_alloc ( id loc,
int  gtid,
int  flags,
size_t  sz,
size_t  shar,
task_entry_t  rtn 
)

Referenced by main().

◆ __kmpc_omp_task_with_deps()

int __kmpc_omp_task_with_deps ( id loc,
int  gtid,
ptask  task,
int  nd,
dep dep_lst,
int  nd_noalias,
dep noalias_dep_lst 
)

Referenced by main().

◆ __kmpc_task_allow_completion_event()

omp_event_handle_t __kmpc_task_allow_completion_event ( ident_t loc_ref,
int  gtid,
kmp_task_t task 
)

Definition at line 4591 of file kmp_tasking.cpp.

Referenced by main().

◆ main()

int main ( void  )

◆ task_entry()

int task_entry ( int  gtid,
ptask  task 
)

Definition at line 82 of file kmp_detach_tasks_t3.c.

References checker.

Referenced by main().

Variable Documentation

◆ checker

int volatile checker

Definition at line 79 of file kmp_detach_tasks_t3.c.

Referenced by main(), and task_entry().