This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/51617] New: [C++0x] async(f) isn't.


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51617

             Bug #: 51617
           Summary: [C++0x] async(f) isn't.
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dave@boostpro.com


Created attachment 26132
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26132
demonstration

I am finding I have to explicitly pass a launch policy to get async to run
anything in a thread.  For example, when I time the attached with
-DFORCE_PARALLEL I get

/tmp/tst  81.54s user 0.23s system 628% cpu 13.001 total

and without it I get:

/tmp/tst  41.29s user 0.05s system 99% cpu 41.343 total

See also bug 49204


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]