Ignore:
Timestamp:
2007-04-09T16:17:25Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36f19c0
Parents:
de33dab
Message:

Remove printf() serialization from thread1 test in tester.
The agreement among developers seems to be that:

  • there _must_ be a futex to serialize access to printf()
  • there _must_ be pseudo thread serialization in printf()
  • the best place for this is vprintf(), the one that goes to console
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/libc/generic/io/printf_core.c

    rde33dab r183788f1  
    4141#include <ctype.h>
    4242#include <string.h>
    43 #include <async.h>      /* for pseudo thread serialization */
    4443
    4544#define __PRINTF_FLAG_PREFIX            0x00000001      /**< show prefixes 0x or 0*/
     
    444443        int width, precision;
    445444        uint64_t flags;
    446        
    447         /* Don't let other pseudo threads interfere. */
    448         async_serialize_start();
    449445       
    450446        counter = 0;
     
    679675        }
    680676       
    681         async_serialize_end();
    682677        return counter;
    683678minus_out:
    684         async_serialize_end();
    685679        return -counter;
    686680}
Note: See TracChangeset for help on using the changeset viewer.