Opened 17 years ago

Closed 17 years ago

#400 closed Bugs (None)

compiler error on Mac implementation of threads

Reported by: nobody Owned by: Roland Schwarz
Milestone: Component: threads
Version: None Severity:
Keywords: Cc:

Description

e-mail: myoula@videotron.ca


With CW 9.4, Carbon (no Mach-O), and BOOST_HAS_MPTASKS 
defined I got:

Error   : illegal use of incomplete struct/union/class 'boost::
function<long, long>'
safe.cpp line 50    boost::function<OSStatus, Duration>  
oWaitOnSemaphore; 

The error statement is marqued below by -->

OSStatus safe_wait_on_semaphore(MPSemaphoreID 
pSemaphoreID, Duration lDuration)
{
	-->boost::function<OSStatus, Duration>  oWaitOnSemaphore;
    oWaitOnSemaphore = bind(MPWaitOnSemaphore, 
pSemaphoreID, _1);
    return(safe_wait(oWaitOnSemaphore, lDuration));
}

Change History (1)

comment:1 by Roland Schwarz, 17 years ago

Status: assignedclosed
Logged In: YES 
user_id=541730

This bug is beeing closed, since support for MPTasks is
beeing dropped. Users are encouraged to use boost.thread on
pthreads, which is available on the newer platforms.
Note: See TracTickets for help on using tickets.