Hi, Whats the limitation on how much a process can env()->rm_session()->attach(...)?
Is this a thread-safe API?
Thanks Daniel
Hi Daniel,
Whats the limitation on how much a process can env()->rm_session()->attach(...)?
there is no limit. Core accounts all meta data it needs from the RAM quota that the client attributed to the RM session. By default, that is 64 KiB, see 'base/include/rm_session/connection.h'. If that quota becomes too scarce, the 'attach' function will raise an 'Out_of_metadata' exception. The client can resolve this condition by upgrading the RAM quota for the session using 'parent()->upgrade()'. For 'env()->rm_session()', this procedure is performed automatically by the 'Expanding_rm_session_client' class defined in 'base/src/base/env/platform_env.h'.
Is this a thread-safe API?
Yes.
Cheers Norman