| 25 | #include "prefetch.h" |
| 26 | |
| 27 | bool |
| 28 | BgBlockFetch::schedule(Data *const data, int blocknum) |
| 29 | { |
| 30 | bool ret = false; |
| 31 | BgBlockFetch *bg = new BgBlockFetch(blocknum); |
| 32 | if (bg->fetch(data)) { |
| 33 | ret = true; |
| 34 | } else { |
| 35 | delete bg; |
| 36 | } |
| 37 | return ret; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Initialize and schedule the background fetch |