On Tue, Feb 17, 2015 at 1:44 PM, Williamson, Jesse F < jesse.f.williamson at intel.com> wrote: > > For C anyway, why not just provide contexts? > > OCCtx *ctx = OCCtxInit(config); > > if(NULL == ctx) > return error(); > > // ... > OCProcess(ctx); > // ... > > OCCtxDestroy(ctx); > > ...and so on. This unfortunately is a breaking change, but it gives us a > way to eliminate shared global state (i.e. global variables) and can be > used whether there are coroutines, multiple contexts, threads, or not. >
Agreed! It's better to make this sort of change now, since the API is still quite young. -Ossama -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150217/d3c1d58e/attachment.html>