Click here to Skip to main content
13,830,857 members

C / C++ / MFC

 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath18-Jun-18 2:25
memberGopi Nath18-Jun-18 2:25 
AnswerRe: Change Tabs in Ribbon Control dynamically - C++ Pin
User 742933818-Jun-18 2:28
professionalUser 742933818-Jun-18 2:28 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath18-Jun-18 2:42
memberGopi Nath18-Jun-18 2:42 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Richard Andrew x6420-Jun-18 15:23
professionalRichard Andrew x6420-Jun-18 15:23 
AnswerRe: Change Tabs in Ribbon Control dynamically - C++ Pin
User 742933820-Jun-18 20:40
professionalUser 742933820-Jun-18 20:40 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath20-Jun-18 21:22
memberGopi Nath20-Jun-18 21:22 
GeneralRe: Change Tabs in Ribbon Control dynamically - C++ Pin
Gopi Nath20-Jun-18 21:19
memberGopi Nath20-Jun-18 21:19 
Questioncreate_task with asynchronous unwrapping PPL Pin
Daniel Ramnath12-Jun-18 9:58
memberDaniel Ramnath12-Jun-18 9:58 
I have a code as below.

// async-unwrapping.cpp
// compile with: /EHsc
#include <ppltasks.h>
#include <iostream>

using namespace concurrency;
using namespace std;

int wmain()
{
    auto t = create_task([]()
    {
        wcout << L"Task A" << endl;

        // Create an inner task that runs before any continuation
        // of the outer task.
        return create_task([]()
        {
            wcout << L"Task B" << endl;
        });
    });
  
    // Run and wait for a continuation of the outer task.
    t.then([](task<void>& t3) // or task<void> t3
    {
        wcout << L"Task C" << endl;
        t3.wait(); // or .get()
    }).wait();
}


I expected the output to be
/* Output:
Task A
Task B
Task C
Task B
*/

But the output is
/* Output:
Task A
Task B
Task C
*/

Why t3.wait(); isn't calling the B task again or a tleast should throw error?
Jesus saves

GeneralRe: create_task with asynchronous unwrapping PPL Pin
Richard MacCutchan12-Jun-18 10:03
protectorRichard MacCutchan12-Jun-18 10:03 
Questioncreate_task function in PPL Pin
Daniel Ramnath11-Jun-18 8:29
memberDaniel Ramnath11-Jun-18 8:29 
QuestionRe: create_task function in PPL Pin
David Crow11-Jun-18 10:54
memberDavid Crow11-Jun-18 10:54 
AnswerRe: create_task function in PPL Pin
Daniel Ramnath11-Jun-18 21:36
memberDaniel Ramnath11-Jun-18 21:36 
AnswerRe: create_task function in PPL Pin
Daniel Ramnath11-Jun-18 21:30
memberDaniel Ramnath11-Jun-18 21:30 
QuestionDynamic programming fill 3D array Pin
pro grimi11-Jun-18 0:12
memberpro grimi11-Jun-18 0:12 
QuestionInitInstance() implimentation. Pin
Member 1271142610-Jun-18 21:17
memberMember 1271142610-Jun-18 21:17 
AnswerRe: InitInstance() implimentation. Pin
Jochen Arndt10-Jun-18 22:24
mveJochen Arndt10-Jun-18 22:24 
QuestionAdvice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
arnold_w9-Jun-18 11:37
memberarnold_w9-Jun-18 11:37 
AnswerRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
leon de boer10-Jun-18 18:27
memberleon de boer10-Jun-18 18:27 
GeneralRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
arnold_w10-Jun-18 21:16
memberarnold_w10-Jun-18 21:16 
GeneralRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
leon de boer11-Jun-18 3:52
memberleon de boer11-Jun-18 3:52 
GeneralRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
arnold_w11-Jun-18 4:13
memberarnold_w11-Jun-18 4:13 
GeneralRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
leon de boer11-Jun-18 5:04
memberleon de boer11-Jun-18 5:04 
GeneralRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
arnold_w11-Jun-18 10:38
memberarnold_w11-Jun-18 10:38 
AnswerRe: Advice on designing a simple task scheduler in embedded C, that can handle asynchronuous tasks? Pin
supercat920-Jun-18 13:22
membersupercat920-Jun-18 13:22 
QuestionC# combo box text color change Pin
czaar9998-Jun-18 8:18
memberczaar9998-Jun-18 8:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190114.1 | Last Updated 17 Jan 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid