mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Comment on gem5's broken GDB on secondary core
Try to assert on all C programs if thread creation failed. C++ already throws by default.
This commit is contained in:
@@ -40,9 +40,9 @@ int main(int argc, char **argv) {
|
||||
|
||||
/* Action */
|
||||
for (i = 0; i < nthreads; ++i)
|
||||
pthread_create(&threads[i], NULL, main_thread, &niters);
|
||||
assert(!pthread_create(&threads[i], NULL, main_thread, &niters));
|
||||
for (i = 0; i < nthreads; ++i)
|
||||
pthread_join(threads[i], NULL);
|
||||
assert(!pthread_join(threads[i], NULL));
|
||||
assert(global == nthreads * niters);
|
||||
|
||||
/* Cleanup. */
|
||||
|
||||
Reference in New Issue
Block a user