PPL Logo

conv-core/futures.C File Reference

Go to the source code of this file.

Data Structures

struct  Cfuture_data_s
struct  CfutureValue_s

Typedefs

typedef struct Cfuture_data_sfutdata
typedef struct CfutureValue_sCfutureValue

Functions

 CpvDeclare (int, CfutureStoreIndex)
Cfuture CfutureCreate (void)
static void CfutureAwaken (futdata data, CfutureValue val)
static void CfutureStore (CfutureValue m)
void * CfutureCreateBuffer (int bytes)
void CfutureDestroyBuffer (void *v)
void CfutureStoreBuffer (Cfuture f, void *value)
void CfutureSet (Cfuture f, void *value, int len)
void * CfutureWait (Cfuture f)
void CfutureDestroy (Cfuture f)
void CfutureModuleInit (void)


Typedef Documentation

typedef struct Cfuture_data_s * futdata

typedef struct CfutureValue_s * CfutureValue


Function Documentation

CpvDeclare ( int  ,
CfutureStoreIndex   
)

Cfuture CfutureCreate ( void   ) 

Definition at line 27 of file futures.C.

References CmiMyPe(), Cfuture_s::data, data, malloc(), Cfuture_s::pe, Cfuture_data_s::ready, Cfuture_data_s::value, and Cfuture_data_s::waiters.

Here is the call graph for this function:

static void CfutureAwaken ( futdata  data,
CfutureValue  val 
) [static]

Definition at line 40 of file futures.C.

References CthAwaken(), CthGetNext(), Cfuture_data_s::ready, PUP::t, Cfuture_data_s::value, and Cfuture_data_s::waiters.

Referenced by CfutureStore(), and CfutureStoreBuffer().

Here is the call graph for this function:

Here is the caller graph for this function:

static void CfutureStore ( CfutureValue  m  )  [static]

Definition at line 50 of file futures.C.

References CfutureAwaken(), and CfutureValue_s::data.

Referenced by CfutureModuleInit().

Here is the call graph for this function:

Here is the caller graph for this function:

void* CfutureCreateBuffer ( int  bytes  ) 

Definition at line 55 of file futures.C.

References CmiAlloc(), and PUP::m.

Referenced by CfutureSet().

Here is the call graph for this function:

Here is the caller graph for this function:

void CfutureDestroyBuffer ( void *  v  ) 

Definition at line 64 of file futures.C.

References CmiFree().

Here is the call graph for this function:

void CfutureStoreBuffer ( Cfuture  f,
void *  value 
)

Definition at line 69 of file futures.C.

References CfutureAwaken(), CmiMyPe(), Converse::CmiSyncSendAndFree(), CfutureValue_s::data, Cfuture_s::data, PUP::m, Cfuture_s::pe, and CfutureValue_s::valsize.

Referenced by CfutureSet().

Here is the call graph for this function:

Here is the caller graph for this function:

void CfutureSet ( Cfuture  f,
void *  value,
int  len 
)

Definition at line 80 of file futures.C.

References CfutureCreateBuffer(), CfutureStoreBuffer(), and copy().

Here is the call graph for this function:

void* CfutureWait ( Cfuture  f  ) 

void CfutureDestroy ( Cfuture  f  ) 

Definition at line 105 of file futures.C.

References CmiFree(), CmiMyPe(), CmiPrintf(), Cfuture_s::data, free(), Cfuture_s::pe, Cfuture_data_s::value, and Cfuture_data_s::waiters.

Here is the call graph for this function:

void CfutureModuleInit ( void   ) 

Definition at line 119 of file futures.C.

References CfutureStore(), and CmiRegisterHandler().

Here is the call graph for this function:


Generated on Mon Sep 21 08:01:38 2020 for Charm++ by  doxygen 1.5.5