libcvd-members
[Top][All Lists]
Advanced

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

Re: [libcvd-members] Aligned mem crashes ?


From: Ethan Eade
Subject: Re: [libcvd-members] Aligned mem crashes ?
Date: Tue, 28 Nov 2006 14:47:59 +0000
User-agent: Thunderbird 1.5.0.8 (X11/20061025)

The best option, I think, is to check at ./configure time whether posix_memalign is working, and then use it explicitly in cvd/image.h if it is. This way, Image allocations are aligned, there is no synchronization issue, and all other allocations are unaffected. I have tried this locally (minus the configure magic) and it works.

If posix_memalign is unavailable, cvd/image.h should use aligned_mem<>, which synchronizes appropriately using mutexes.

- Ethan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]