|
From: | West, Nathan |
Subject: | Re: [Discuss-gnuradio] [coproc] Custom buffers work |
Date: | Mon, 13 Jul 2015 11:12:43 -0400 |
On Mon, Jul 13, 2015 at 3:03 AM, Sylvain Munaut <address@hidden> wrote:However, if I understand what you want correctly this is exactly late enough for e.g. fosphor, in that the UI should (presumably?) already exist, and therefore the GL context should be valid.Just thinking about my particuliar experience with fosphor, the
allocation can only be done in a very specific context :
- The UI (Qt/WX/...) has to be fully setup because I need a valid GL
context which will not be available until UI is ready.
- Allocation needs to be done in the same thread as the one that will
do the work().This is tricky - since this is all being handled as part of top_block::start, and in particular even before the scheduler (which, by default, is thread-per-block) is created.Is this a requirement of OpenCL? It is not sufficient that the memory was allocated in the same process? I'll note that at the current point init() is called, the threads which will do the work() don't exist yet.
[Prev in Thread] | Current Thread | [Next in Thread] |