source:
proiecte/swift/trunk/lib/hoard-371/src/heaplayers/experimental/pad.h
@
176
Last change on this file since 176 was 176, checked in by , 14 years ago | |
---|---|
File size: 295 bytes |
Rev | Line | |
---|---|---|
[176] | 1 | #ifndef _PAD_H_ |
2 | #define _PAD_H_ | |
3 | ||
4 | ||
5 | // Add a cache-pad to an object. | |
6 | ||
7 | template <int CacheLineSize, class Super> | |
8 | class Pad : public Super { | |
9 | private: | |
10 | // Add a pad field with a name that is unlikely | |
11 | // to conflict with a real field name. | |
12 | char _pad_QWERTYUIOP1234567890[CacheLineSize]; | |
13 | }; | |
14 | ||
15 | ||
16 | #endif |
Note: See TracBrowser
for help on using the repository browser.