c11/threads: correct assertion
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 1 Aug 2014 16:39:49 +0000 (17:39 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 12 Aug 2014 22:36:05 +0000 (23:36 +0100)
commit469416f988bcd471fb6058cdfb5ffebe840545da
tree50730e495e6cdd335c9eaa12400a9d81efe6ad78
parent07109cfd996e43cb64433864279e6a4b4d6fccf3
c11/threads: correct assertion

We should assert when either the function or the flag pointer
is null or we'll end up with a null reference a few lines later.

Currently unused by mesa thus it has gone unnoticed.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
include/c11/threads_win32.h