Compare commits
5 Commits
libshmem-2
...
master
Author | SHA1 | Date | |
---|---|---|---|
40f38d9391 | |||
949ebe54fe | |||
dbbca69430 | |||
842da177f5 | |||
b3f6b67d9c |
@ -1,11 +1,25 @@
|
|||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
LibShMem V 3.0.0 - A. GIBERT - 2024/05/xx
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
- All:
|
||||||
|
- Working on new API...
|
||||||
|
- LibShMem:
|
||||||
|
- Add LibNode 3 API support,
|
||||||
|
- Add LibLog 1.1 API support.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
LibShMem V 2.1.0 - A. GIBERT - 2024/05/21
|
LibShMem V 2.1.0 - A. GIBERT - 2024/05/21
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
All: - This new LibShMem branch (2.1.x) support the new LibNode branch (2.3.x) & LibLog (1.0.x),
|
All:
|
||||||
|
- This new LibShMem branch (2.1.x) support the new LibNode branch (2.3.x) & LibLog (1.0.x),
|
||||||
- Switch to LGPL/GPL V3 & FGD V1.3 licenses,
|
- Switch to LGPL/GPL V3 & FGD V1.3 licenses,
|
||||||
- Last 2.x release branch, now working on LibShMem 3!
|
- Last 2.x release branch, now working on LibShMem 3!
|
||||||
LibShMem: - Major code cleanup,
|
LibShMem:
|
||||||
|
- Major code cleanup,
|
||||||
- Start French to English translation.
|
- Start French to English translation.
|
||||||
|
|
||||||
|
|
||||||
|
427
lib/libshmem.c
427
lib/libshmem.c
File diff suppressed because it is too large
Load Diff
@ -172,13 +172,45 @@ typedef union semun
|
|||||||
unsigned short int * array;
|
unsigned short int * array;
|
||||||
} semun;
|
} semun;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*------------------------------------------------------------------------------*/
|
||||||
|
/* LibShMem data struct handlers */
|
||||||
|
/*------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
NDT_Handler SMG_DataStruct_Handlers[ NDD_HANDLER_NB] =
|
||||||
|
{
|
||||||
|
{ "", /* Manager function name */
|
||||||
|
NULL}, /* Manager function pointer */
|
||||||
|
{ "", /* Init function name */
|
||||||
|
NULL}, /* Init function pointer */
|
||||||
|
{ "SM_Base_Alloc", /* Alloc function name */
|
||||||
|
NULL}, /* Alloc function pointer */
|
||||||
|
{ "SM_Base_Free", /* Free function name */
|
||||||
|
NULL}, /* Free function pointer */
|
||||||
|
{ "", /* Open function name */
|
||||||
|
NULL}, /* Open function pointer */
|
||||||
|
{ "", /* Close function name */
|
||||||
|
NULL}, /* Close function pointer */
|
||||||
|
{ "", /* Info function name */
|
||||||
|
NULL}, /* Info function pointer */
|
||||||
|
{ "", /* Lock function name */
|
||||||
|
NULL}, /* Lock function pointer */
|
||||||
|
{ "", /* Unlock function name */
|
||||||
|
NULL} /* Unlock function pointer */
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------*/
|
/*------------------------------------------------------------------------------*/
|
||||||
/* */
|
/* */
|
||||||
/*------------------------------------------------------------------------------*/
|
/*------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#define SM_LIBSHMEM_OPEN_CHECK() if( !SM_Base) { LG_LOG_ERROR_0( "LibShMem library is not open"); return( SMS_ERRAPI); }
|
#define SM_LIBSHMEM_OPEN_CHECK() if( !SM_Base) { LG_LOG_ERROR( "LibShMem library is not open"); return( SMS_ERRAPI); }
|
||||||
#define SM_HEAP_NAME_CHECK(ptr) if( !(ptr)) { LG_LOG_ERROR_0( "Heap name is undefined"); return( SMS_ERRAPI); }
|
#define SM_HEAP_NAME_CHECK(ptr) if( !(ptr)) { LG_LOG_ERROR( "Heap name is undefined"); return( SMS_ERRAPI); }
|
||||||
#define SM_HEAP_CHECK( ptr) if( !(ptr)) { LG_LOG_ERROR_0( "Heap is undefined"); return( SMS_ERRAPI); }
|
#define SM_HEAP_CHECK( ptr) if( !(ptr)) { LG_LOG_ERROR( "Heap is undefined"); return( SMS_ERRAPI); }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -252,7 +252,7 @@ int main( int argc, char **argv)
|
|||||||
return( -1);
|
return( -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
LG_LOG_INFO_0( "Start SMAdmin");
|
LG_LOG_INFO( "Start SMAdmin");
|
||||||
|
|
||||||
|
|
||||||
/* Lancement de commande d'administration */
|
/* Lancement de commande d'administration */
|
||||||
@ -560,7 +560,7 @@ int main( int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LG_LOG_INFO_0( "End SMAdmin");
|
LG_LOG_INFO( "End SMAdmin");
|
||||||
|
|
||||||
if( ( lg_status = LG_Library_Close( true)) != LGS_OK)
|
if( ( lg_status = LG_Library_Close( true)) != LGS_OK)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user