junction icon indicating copy to clipboard operation
junction copied to clipboard

How to process memory leak?

Open poor1017 opened this issue 2 years ago • 0 comments

Hi @preshing

This is a great lib!

My situation is here:

  1. There is a global hashmap for managing sessions;
  2. There are several thread to create session and insert the session to the hashmap from different threads;
  3. In each thread, when its work finish, the session is erased from the global hashmap;

Can you tell me:

  1. when to call junction::QSBR::Context context = junction::DefaultQSBR.createContext();;
  2. when to call junction::DefaultQSBR.update(context);;
  3. when to call junction::DefaultQSBR.destroyContext(context);;

Thank you!

poor1017 avatar Apr 02 '23 07:04 poor1017