There's quite a bit of code repetition between context_t and primary_context_t, due mostly to differentiated handling of flags. However, we can reduce this, especially if we shuffle the location in which we protect against the use of the deprecated CU_CTX_MAP_HOST flag.
There's quite a bit of code repetition between context_t and primary_context_t, due mostly to differentiated handling of flags. However, we can reduce this, especially if we shuffle the location in which we protect against the use of the deprecated CU_CTX_MAP_HOST flag.