StackOverflow Questions for Tag: packaged-task

牛牪犇
牛牪犇

Reputation: 11

Can packaged_task<void()> type objects be stored in queue?

Score: 0

Views: 85

Answers: 3

Read More
vegalock
vegalock

Reputation: 51

Template type deducion for lambda inside packaged_task

Score: 0

Views: 44

Answers: 1

Read More
BBing
BBing

Reputation: 172

How to tell std::future if std::promise exist in C++?

Score: 1

Views: 931

Answers: 2

Read More
nikolas
nikolas

Reputation: 8975

What is the difference between packaged_task and async

Score: 197

Views: 48307

Answers: 4

Read More
gaurav bharadwaj
gaurav bharadwaj

Reputation: 1771

Why std::future is different returned from std::packaged_task and std::async?

Score: 8

Views: 2414

Answers: 3

Read More
f1msch
f1msch

Reputation: 665

Can a only-movable object be made into a shared_ptr?

Score: 0

Views: 83

Answers: 1

Read More
glades
glades

Reputation: 4884

error: no matching function for call to '__invoke_r'

Score: 0

Views: 331

Answers: 0

Read More
glades
glades

Reputation: 4884

Direct initialization != copy initialization when converting from different type?

Score: 2

Views: 125

Answers: 1

Read More
Mangy
Mangy

Reputation: 129

Why i am getting No associated state error in below example. Could anyone tell any reason?

Score: 0

Views: 568

Answers: 1

Read More
Jeffrey Bosboom
Jeffrey Bosboom

Reputation: 13663

Constructing std::packaged_task from std::bind_front with a move-only bound argument does not compile

Score: 1

Views: 377

Answers: 1

Read More
Immanuel Kant
Immanuel Kant

Reputation: 527

C++11 packaged_task doesn't work as expected: thread quits and no output

Score: 0

Views: 70

Answers: 1

Read More
John
John

Reputation: 3534

Why `std::thread()` and `std::packaged_task()` works different, although they both accept callable targets?

Score: -1

Views: 288

Answers: 1

Read More
John
John

Reputation: 3534

How to understand the `callable` in the right way?

Score: 2

Views: 824

Answers: 1

Read More
TestUser
TestUser

Reputation: 967

Why the packaged task is terminating after throwing system error?

Score: 0

Views: 45

Answers: 0

Read More
137
137

Reputation: 313

Formal guarantee that empty packaged_task isn't optimized out?

Score: 0

Views: 40

Answers: 0

Read More
Daniel Langr
Daniel Langr

Reputation: 23527

Why is converting constructor of std::packaged_task explicit?

Score: 0

Views: 134

Answers: 1

Read More
rightaway717
rightaway717

Reputation: 2841

Not all std::packaged_tasks executed when inside std::async calls

Score: 0

Views: 64

Answers: 1

Read More
user16551333
user16551333

Reputation:

Is this threadpool code attempting double execution of task?

Score: 1

Views: 53

Answers: 1

Read More
Domingos Martins
Domingos Martins

Reputation: 631

When to use promise over async or packaged_task?

Score: 63

Views: 12646

Answers: 2

Read More
Sumanjit Sengupta
Sumanjit Sengupta

Reputation: 37

Error: cannot convert argument 1 from 'Packaged_Task::<class_name>' to 'std::nullptr_t'

Score: -1

Views: 304

Answers: 1

Read More
PreviousPage 1Next