I'll state for the record that I am all for a change like this. My concern is the effort related to it would be massive and likely result in delaying a ton of features that many find important.
My point basically is that "I like this, but it needs to go through prioritization". On Tue, 2015-02-17 at 14:58 -0800, Othman, Ossama wrote: > 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 > _______________________________________________ > iotivity-dev mailing list > iotivity-dev at lists.iotivity.org > https://lists.iotivity.org/mailman/listinfo/iotivity-dev
