5#ifndef ATHCUDAINTERFACES_ISTREAMPOOLSVC_H
6#define ATHCUDAINTERFACES_ISTREAMPOOLSVC_H
12#include "GaudiKernel/IService.h"
Interface for a CUDA stream pool service.
virtual StreamHolder getAvailableStream()=0
Get a stream from the pool.
DeclareInterfaceID(AthCUDA::IStreamPoolSvc, 1, 0)
Declare the interface ID.
virtual void yieldStream(StreamHolder &stream)=0
Put a given stream back into the pool.
friend class StreamHolder
Make StreamHolder a friend of this interface.
virtual bool isEmpty() const =0
Check whether any streams are available for the job.