Changeset 498ced1 in mainline for uspace/lib/c/generic/assert.c
- Timestamp:
- 2018-08-11T02:43:32Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 05882233
- Parents:
- b13d80b
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-11 02:29:02)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-11 02:43:32)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/assert.c
rb13d80b r498ced1 35 35 #include <io/kio.h> 36 36 #include <stdlib.h> 37 #include <atomic.h>38 37 #include <stacktrace.h> 39 38 #include <stdint.h> 40 39 #include <task.h> 41 40 42 static atomic_t failed_asserts = { 0 };41 __thread int failed_asserts = 0; 43 42 44 43 void __helenos_assert_quick_abort(const char *cond, const char *file, unsigned int line) … … 69 68 * Check if this is a nested or parallel assert. 70 69 */ 71 if (atomic_postinc(&failed_asserts)) 70 failed_asserts++; 71 if (failed_asserts > 0) 72 72 abort(); 73 73
Note:
See TracChangeset
for help on using the changeset viewer.