You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trentmeester edited this page Dec 13, 2011
·
5 revisions
The resource manager is called gRsrcMngr and is of type class RsrcMngr. It is a global object, which is why it has a ‘g’ prefixed. It is created automatically by the framework and is guaranteed to exist before any test assumes control. It is also a singleton, meaning only 1 object of its kind will ever exist for each running instance of tnvme. The main job of the gRsrcMngr is to allocate resources and allow their deallocation when their lifetime has expired. All objects born of the gRsrcMngr have what is called group lifetime. Those resources are guaranteed to exist/live for the entire duration of a group's processing. In other words, after all tests have executed within a group, then and only then, will the framework force the deallocation of all resources born of the gRsrcMngr. The framework simply notifies the gRsrcMngr to initiate the deallocation of every resource.