diff options
| author | Brian Horton <brianh@linux.ibm.com> | 2013-11-08 16:11:13 -0600 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-11-14 15:05:15 -0600 |
| commit | 33ee54a0935377444df64cc15402948f5b1029a7 (patch) | |
| tree | 0a75ded85de8461ef7acb9ab929b69a174bff6e4 /src/include | |
| parent | d0a012c5a6ad3cc0fc779c26391c64376f070e49 (diff) | |
| download | blackbird-hostboot-33ee54a0935377444df64cc15402948f5b1029a7.tar.gz blackbird-hostboot-33ee54a0935377444df64cc15402948f5b1029a7.zip | |
optimize getTopLevelTarget() function
Change-Id: Ie83d5ce6dae007c40c4a074e85a72f7c86b81be0
RTC: 90984
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/7159
Tested-by: Jenkins Server
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/usr/targeting/common/targetservice.H | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/include/usr/targeting/common/targetservice.H b/src/include/usr/targeting/common/targetservice.H index a24b6eac8..6e8a9b776 100644 --- a/src/include/usr/targeting/common/targetservice.H +++ b/src/include/usr/targeting/common/targetservice.H @@ -681,7 +681,7 @@ class TargetService * * @pre targetservice().init() should have been called before this. * - * @post Target servicei is fully initialized along with a default + * @post Target service is fully initialized along with a default * master node. */ @@ -837,8 +837,25 @@ class TargetService const RECURSION_LEVEL i_recursionLevel, const PredicateBase* const i_pPredicate) const; + /** + * @brief Computes and stores the Top Level Target into iv_pSys + * + * this should only be called to the exclusion of threads that might + * try to read or write iv_pSys. + * + * @param NONE + * + * @pre Target service must already be 'initialized' + * + * @post Target service iv_pSys initialized with top TYPE_SYS + * target. + * + */ + void _setTopLevelTarget(); + // Instance variables bool iv_initialized; ///< Is service initialized or not + Target * iv_pSys; // Top Level Target NodeInfo_t iv_nodeInfo; |

