Rémi Bernon : server: Add a foreground flag to the thread input shared memory.