Welcome! Log In Create A New Profile

Advanced

Re: ngx_list_create in shm_zone

August 23, 2016 09:16AM
Use ngx_queue_t
On Aug 23, 2016 09:41, "Raghavan, Gopal" <gopal.raghavan@here.com> wrote:

> I can store as ngx_rbtree_t.
> Any suggestion on how to store a struct with list of items, something like
> this in shared memory?
>
> typedef struct {
> ngx_rbtree_node_t node;
> ngx_uint_t id;
> ngx_list_t *items; // list of items. But
> ngx_list_t is not possible since it needs ngx_pool_t. Any alternatives?
> } ngx_http_metadata_shm_block_t;
>
> Thanks,
> --
> Gopal
>
> On 8/23/16, 7:11 AM, "nginx-devel on behalf of Maxim Dounin" <
> nginx-devel-bounces@nginx.org on behalf of mdounin@mdounin.ru> wrote:
>
> >Hello!
> >
> >On Tue, Aug 23, 2016 at 02:51:54AM +0000, Raghavan, Gopal wrote:
> >
> >> Is it possible to use ngx_list_create and ngx_list_init with share
> memory?
> >> List functions take ngx_pool_t, however shared memory zone provides
> ngx_slab_pool_t.
> >> If yes, could you please share an example.
> >
> >No, it's not possible.
> >
> >--
> >Maxim Dounin
> >http://nginx.org/
> >
> >_______________________________________________
> >nginx-devel mailing list
> >nginx-devel@nginx.org
> >http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

ngx_list_create in shm_zone

Raghavan, Gopal 633 August 22, 2016 11:12PM

Re: ngx_list_create in shm_zone

Maxim Dounin 337 August 23, 2016 07:12AM

Re: ngx_list_create in shm_zone

Raghavan, Gopal 330 August 23, 2016 08:42AM

Re: ngx_list_create in shm_zone

wandenberg 406 August 23, 2016 09:16AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 293
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready