Re: Named shared memory without synchronization
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Fri, 24 Nov 2006 11:43:56 -0500
"Dan Schwartz" <DanSchwartz@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:536877B2-7881-45CB-89A1-11ACBFF1EA9E@xxxxxxxxxxxxx
Outside of using #pragma pack how could a single integer become
missaligned?
char buf[6];
int* p = (int*)(buf + 2);
int n = *p; // misaligned access
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Re: Named shared memory without synchronization
- From: Alex Blekhman
- Re: Named shared memory without synchronization
- Prev by Date: Re: IActiveDesktop
- Next by Date: Re: Open file message when application is running
- Previous by thread: Re: Named shared memory without synchronization
- Next by thread: Re: Named shared memory without synchronization
- Index(es):
Relevant Pages
|