Re: [Cppcms-users] Fw:sorry to ask this question but i do not know where to ask
Brought to you by:
artyom-beilis
|
From: Lee E. <le...@el...> - 2012-07-27 19:26:52
|
it keeps the union aligned properly by making sure its size fits the other
memeber and fits a multiplication of the alignment size
On Fri, Jul 27, 2012 at 6:58 AM, 郭春晓 <rj...@12...> wrote:
>
>
>
> -------- Forwarding messages --------
> From: "郭春晓" <rj...@12...>
> Date: 2012-07-27 11:57:16
> To: art...@ya...
> Subject: sorry to ask this question but i do not know where to ask
> Hi all:
> In high performance server,we all see the code as follow.
> typedef *union*
> {
> erts_smp_rwmtx_t rwmtx;
> byte
> cache_line_align_[ERTS_ALC_CACHE_LINE_ALIGN_SIZE(sizeof(erts_smp_rwmtx_t))];
> }*erts_meta_main_tab_lock_t*;
>
> *erts_meta_main_tab_lock_t* main_tab_lock[16];
>
> what can cache_line_align_ do and the benefit of it ?
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
|