MONC
Data Types | Functions/Subroutines | Variables
forthread_data Module Reference

Data Types

interface  i_destructor
 
interface  i_once
 
interface  i_run
 
type  ptr_t_run
 
type  t_run
 

Functions/Subroutines

type(c_ptr) function start_routine (arg)
 

Variables

integer, parameter init_size = 16
 
type(ptr_t_run), dimension(:), pointer routine_table => NULL()
 
integer routine_table_size
 
integer routine_table_mutex
 

Function/Subroutine Documentation

◆ start_routine()

type(c_ptr) function forthread_data::start_routine ( type(c_ptr), intent(in), value  arg)

Definition at line 43 of file forthread_data.F90.

43 
44  type(c_ptr), value, intent(in) :: arg
45  !returns?
46 
47  type(t_run), pointer :: exec
48  integer,pointer :: ret
49 
50  call c_f_pointer(arg,exec)
51  call exec%run(exec%arg)
52  start_routine = c_null_ptr
Here is the caller graph for this function:

Variable Documentation

◆ init_size

integer, parameter forthread_data::init_size = 16

Definition at line 33 of file forthread_data.F90.

33  integer, parameter :: init_size = 16

◆ routine_table

type(ptr_t_run), dimension(:), pointer forthread_data::routine_table => NULL()

Definition at line 34 of file forthread_data.F90.

34  type(ptr_t_run), dimension(:), pointer :: routine_table => null()

◆ routine_table_mutex

integer forthread_data::routine_table_mutex

Definition at line 36 of file forthread_data.F90.

36  integer :: routine_table_mutex

◆ routine_table_size

integer forthread_data::routine_table_size

Definition at line 35 of file forthread_data.F90.

35  integer :: routine_table_size