Ticket #5040: 5040.patch
File 5040.patch, 1.3 KB (added by , 11 years ago) |
---|
-
future.hpp
413 413 414 414 struct all_futures_lock 415 415 { 416 count_type count; 416 #ifdef _MANAGED 417 typedef std::ptrdiff_t count_type_portable; 418 #else 419 typedef count_type count_type_portable; 420 #endif 421 count_type_portable count; 422 417 423 boost::scoped_array<boost::unique_lock<boost::mutex> > locks; 418 424 419 425 all_futures_lock(std::vector<registered_waiter>& futures): 420 426 count(futures.size()),locks(new boost::unique_lock<boost::mutex>[count]) 421 427 { 422 for(count_type i=0;i<count;++i)428 for(count_type_portable i=0;i<count;++i) 423 429 { 424 430 #if defined __DECCXX || defined __SUNPRO_CC 425 431 locks[i]=boost::unique_lock<boost::mutex>(futures[i].future->mutex).move(); … … 436 442 437 443 void unlock() 438 444 { 439 for(count_type i=0;i<count;++i)445 for(count_type_portable i=0;i<count;++i) 440 446 { 441 447 locks[i].unlock(); 442 448 }