Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 257601 Details for
Bug 381411
Odd g++ warning from pthread.h when compiling with -fno-exceptions
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
small test app to try compiling
test.C (text/plain), 852 bytes, created by
Josh Boyer
on 2007-11-14 02:31:34 UTC
(
hide
)
Description:
small test app to try compiling
Filename:
MIME Type:
Creator:
Josh Boyer
Created:
2007-11-14 02:31:34 UTC
Size:
852 bytes
patch
obsolete
>#include <iostream> >#include <queue> >#include <assert.h> >#include <pthread.h> > >using namespace std; > >void die(const char *msg) >{ > cout<<msg<<endl; > perror(msg); > exit(-1); >} > >class foo { >public: > foo() { cout<<"object of foo constructed"<<endl; } > ~foo() { cout<<"object of foo destroyed"<<endl; } > > void push(uint32_t data) > { > pthread_cleanup_push(cleanup, this); > cout<<"pushing data"<<endl; > pthread_cleanup_pop(0); > } > void pop(uint32_t &data) > { > pthread_cleanup_push(cleanup, this); > cout<<"popping data"<<endl; > pthread_cleanup_pop(0); > } >private: > > static void cleanup(void *foobar) > { > cout<<"cleaning up"<<endl; > } >}; > >void *startup(void *arg) >{ > while(1) { > sleep(1); > } >} > >int main(int argc, char **argv) >{ > pthread_t thread; > > if (pthread_create(&thread, 0, startup, 0)) > die("oops"); > > while (1) { > sleep (1); > } > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 381411
: 257601