You should look in to the Producer-Consumer architecture. This utilizes a queue, where the Producer (your FPGA loop) gathers the data, then sends it to the Consumer loop for processing. The Consumer loop just sits and waits until the Master sends it something to do. This is a great way to get rid of constantly polling a local variable.
Edit: GerdW, you're too fast