-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #353 from shintaro-iwasaki/pr/pool_config
implement ABT_pool_config
- Loading branch information
Showing
22 changed files
with
1,090 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ | ||
/* | ||
* See COPYRIGHT in top-level directory. | ||
*/ | ||
|
||
#ifndef ABTI_POOL_CONFIG_H_INCLUDED | ||
#define ABTI_POOL_CONFIG_H_INCLUDED | ||
|
||
/* Inlined functions for pool config */ | ||
|
||
static inline ABTI_pool_config *ABTI_pool_config_get_ptr(ABT_pool_config config) | ||
{ | ||
#ifndef ABT_CONFIG_DISABLE_ERROR_CHECK | ||
ABTI_pool_config *p_config; | ||
if (config == ABT_POOL_CONFIG_NULL) { | ||
p_config = NULL; | ||
} else { | ||
p_config = (ABTI_pool_config *)config; | ||
} | ||
return p_config; | ||
#else | ||
return (ABTI_pool_config *)config; | ||
#endif | ||
} | ||
|
||
static inline ABT_pool_config | ||
ABTI_pool_config_get_handle(ABTI_pool_config *p_config) | ||
{ | ||
#ifndef ABT_CONFIG_DISABLE_ERROR_CHECK | ||
ABT_pool_config h_config; | ||
if (p_config == NULL) { | ||
h_config = ABT_POOL_CONFIG_NULL; | ||
} else { | ||
h_config = (ABT_pool_config)p_config; | ||
} | ||
return h_config; | ||
#else | ||
return (ABT_pool_config)p_config; | ||
#endif | ||
} | ||
|
||
#endif /* ABTI_POOL_CONFIG_H_INCLUDED */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
abt_sources += \ | ||
pool/fifo.c \ | ||
pool/fifo_wait.c \ | ||
pool/pool.c | ||
|
||
pool/pool.c \ | ||
pool/pool_config.c |
Oops, something went wrong.