creating memory pool and thread safety

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I believe I read a comment to the effect that creating pools is  
thread safe.

It's in: pjsip/src/pjsip/sip_endpoint.c

     /* Don't need to acquire mutex since pool factory is thread safe

-Norman

On Dec 6, 2007, at 1:00 PM, <tloginbr-pjsip at yahoo.com.br> <tloginbr- 
pjsip at yahoo.com.br> wrote:

> I'm creating a object to handle memory pools in a
> thread safe way. I know that pj_pool_create is not
> thread safe, but I'm wondering if I use different
> caching pools if there is a problem to call
> pj_pool_create from two different threads, each one
> using a different caching pool to allocate memory.
>
> Thanks for all help,
>
> Thiago
>
>
>       Abra sua conta no Yahoo! Mail, o ?nico sem limite de espa?o  
> para armazenamento!
> http://br.mail.yahoo.com/
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org





[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux