summaryrefslogtreecommitdiff
path: root/gst/cothreads.h
AgeCommit message (Collapse)AuthorFilesLines
2005-07-18gst/cothreads.*: Let's remove these.Wim Taymans1-77/+0
Original commit message from CVS: * gst/cothreads.c: * gst/cothreads.h: Let's remove these.
2004-04-04gst/: implement gst_pad_collect as replacement for gst_pad_select.Benjamin Otte1-4/+0
Original commit message from CVS: * gst/gstpad.c: (gst_pad_collect_array), (gst_pad_collectv), (gst_pad_collect), (gst_pad_collect_valist), (gst_pad_selectv), (gst_pad_select): * gst/gstpad.h: * gst/gstscheduler.c: (gst_scheduler_pad_select), (gst_scheduler_lock_element), (gst_scheduler_unlock_element): * gst/gstscheduler.h: implement gst_pad_collect as replacement for gst_pad_select. deprecate gst_pad_select and gst_scheduler_(un)lock_element add new flag GST_SCHEDULER_FLAG_NEW_API for API that implements the new pad_select, lock and unlock calls. * gst/cothreads.c: (cothread_destroy), (cothread_switch): * gst/cothreads.h: * gst/schedulers/cothreads_compat.h: * gst/schedulers/gthread-cothreads.h: remove unused cothread_lock and cothread_unlock calls * gst/schedulers/entryscheduler.c: (gst_entry_scheduler_class_init), (gst_entry_scheduler_init), (_can_schedule_loop), (gst_entry_scheduler_get_handler), (gst_entry_scheduler_pad_select): update to new API * gst/schedulers/gstbasicscheduler.c: (gst_basic_scheduler_class_init), (gst_basic_scheduler_init), (gst_basic_scheduler_pad_select): remove useless lock and unlock calls, update pad_select to new API (untested) * gst/schedulers/gstoptimalscheduler.c: (gst_opt_scheduler_class_init): remove useless select, lock and unlock function calls * gst/elements/gstaggregator.c: (gst_aggregator_loop): use gst_pad_collect instead of gst_pad_select
2004-03-15Revert again, this time without post-commit reindent hooks to put back the ↵Johan Dahlin1-36/+36
indentation :-) Original commit message from CVS: Revert again, this time without post-commit reindent hooks to put back the indentation :-)
2004-03-13gst-indent run on coreThomas Vander Stichele1-36/+36
Original commit message from CVS: gst-indent run on core
2003-01-21Remove GCC-ism used to find current stack pointer, and use this opportunity ↵David Schleef1-5/+0
to clean up the code slightly. Based on ... Original commit message from CVS: Remove GCC-ism used to find current stack pointer, and use this opportunity to clean up the code slightly. Based on patch from Brian Cameron.
2002-12-14Renamed the thread argument to cothread to avoid confusionWim Taymans1-11/+11
Original commit message from CVS: Renamed the thread argument to cothread to avoid confusion Documentation updates
2002-12-06Removing unused code related to stack allocation (cothreads_stackquery(), ↵David Schleef1-1/+0
gst_scheduler_get_preferred_stack()) Original commit message from CVS: Removing unused code related to stack allocation (cothreads_stackquery(), gst_scheduler_get_preferred_stack())
2002-12-05refactor cothread stack mmap code. Add makecontext() as an option for ↵David Schleef1-3/+2
initial stack preparation. Original commit message from CVS: refactor cothread stack mmap code. Add makecontext() as an option for initial stack preparation.
2002-09-12useful comments change thread -> cothread in varnames where it's applicable ↵Thomas Vander Stichele1-1/+2
code cleanups Original commit message from CVS: * useful comments * change thread -> cothread in varnames where it's applicable * code cleanups
2002-07-08This one removes the unused code..Wim Taymans1-24/+13
Original commit message from CVS: This one removes the unused code..
2002-06-28more protective programming cothread 0 cleans up higher cothreads if they're ↵Thomas Vander Stichele1-0/+1
still around use a magic number to prote... Original commit message from CVS: more protective programming cothread 0 cleans up higher cothreads if they're still around use a magic number to protect against mem corruption in the struct flames welcome
2002-06-26ok, this seems to be the right fix for the basic scheduler.Thomas Vander Stichele1-0/+1
Original commit message from CVS: ok, this seems to be the right fix for the basic scheduler. I'd appreciate it if : a) someone looks over these minimal changes and tells me if they're done in the right way (especially the alignment argument ;)) b) others run lots of pipes with basic and tell me if they still have issues If all goes well I want to revert to the basic scheduler and do a release
2002-02-23Added a private field to the cothread state.Wim Taymans1-16/+21
Original commit message from CVS: Added a private field to the cothread state.
2001-12-27- Added a function to get the currently executing cothreadWim Taymans1-1/+1
Original commit message from CVS: - Added a function to get the currently executing cothread - Removed some useless includes - _interrupt now returns a boolean so the behaviour after the interrupt can be controlled by the scheduler. - Added a better way to set/get the default scheduler. - make thread and pipeline get the default scheduler.
2001-12-25Tee Fixes. added cothread_stop (not used) improved the pad event dispatcher.Wim Taymans1-0/+2
Original commit message from CVS: Tee Fixes. added cothread_stop (not used) improved the pad event dispatcher. added an event_received signal on the pad. do less state changes in the autoplugger. small scheduler fix.
2001-12-23Fix an event leakWim Taymans1-1/+1
Original commit message from CVS: Fix an event leak Ne need to save signals on longjmp
2001-12-20cothread cleanup.Wim Taymans1-2/+5
Original commit message from CVS: cothread cleanup. - removed some old code. - ran the thing through indent - rename cothread_init/free to cothread_context_init/free - implement cothread_free/destroy to clear the cothread_state slot - make cothread_init reuse empty slots. minor cleanups in error reporting (gstpad, gstelement) code cleanup in gstthread make unexpected state changes in gstthread less fatal free the cothread_state in the scheduler. This one passes all the current cvs testcases including dynamic-pipeline.
2001-12-18Adde cothread context cleanup codeWim Taymans1-0/+1
Original commit message from CVS: Adde cothread context cleanup code
2001-09-141. Add more warnings for the gst core only. Various trival fixes to quiet ↵Joshua N. Pritikin1-1/+1
the warnings. Original commit message from CVS: 1. Add more warnings for the gst core only. Various trival fixes to quiet the warnings. 2. Fix GstBufferCopyFunc prototype. 3. Re-apply the reverted type!=0 assertion in gst_elementfactory_new.
2001-05-27Docs updatesWim Taymans1-1/+1
Original commit message from CVS: Docs updates Changed the cothread to use sigjmp_buf removed some unused methods. Some code cleanups.
2001-05-25Merged from INCSCHED on 200505251!!!Erik Walthinsen1-1/+18
Original commit message from CVS: Merged from INCSCHED on 200505251!!!
2001-05-10move cothread_context definition over to the .cErik Walthinsen1-6/+0
Original commit message from CVS: move cothread_context definition over to the .c
2001-05-10moved cothread parameters into .c to avoid rebuilding libgst.la every timeErik Walthinsen1-4/+0
Original commit message from CVS: moved cothread parameters into .c to avoid rebuilding libgst.la every time
2001-01-19API docs updatesWim Taymans1-7/+7
Original commit message from CVS: API docs updates
2001-01-19more cothreads cleanup, and first pass at ARM codeErik Walthinsen1-3/+4
Original commit message from CVS: more cothreads cleanup, and first pass at ARM code
2000-12-28Updated copyright in all the libgst files.Erik Walthinsen1-1/+4
Original commit message from CVS: Updated copyright in all the libgst files. Created gst_private.h, set up all files to use it.
2000-12-15Header cleanup: try to include as little as possible; this will probably ↵Wim Taymans1-1/+0
speed up compilation a bit. Original commit message from CVS: Header cleanup: try to include as little as possible; this will probably speed up compilation a bit. changed the .c files to use #include "..." Fix for the 'plugins are loaded twice' bug. Fix 22186: GstObject flags are now used everywhere. Added *_FLAG_LAST so elements do not use the same flags. Added some padding in the flag enum for future expansion.
2000-12-03Enhanced debugging by making DEBUG() print out the cothread ID as well as ↵Erik Walthinsen1-0/+1
the process ID. cothread_getcurrent return... Original commit message from CVS: Enhanced debugging by making DEBUG() print out the cothread ID as well as the process ID. cothread_getcurrent returns the current cothread ID, or -1 if cothreads aren't set up in this process context.
2000-11-11Docs updates.Wim Taymans1-0/+20
Original commit message from CVS: Docs updates. Added LICENSE info to headers/code where missing in gst directory Added a bonobo wrapper for the media player (it shows up in gshell but locks up when activating the component, anyone?) Fixed some XML save/load problems with arguments.
2000-11-06Added seeking to the avi decoder by implementing pull_region.Wim Taymans1-0/+4
Original commit message from CVS: Added seeking to the avi decoder by implementing pull_region. Fixes to the asyncdisksrc. Added thread specific data to the cothreads.
2000-11-04Added the excellent mpeg2dec decoder. Not 100% optimized but allready very fast.Wim Taymans1-8/+9
Original commit message from CVS: Added the excellent mpeg2dec decoder. Not 100% optimized but allready very fast. More cleanup.
2000-11-01Some code cleanupWim Taymans1-1/+1
Original commit message from CVS: Some code cleanup Let the parent GstBin decide when to do a create_plan (bin inside a thread)
2000-09-22A first attempt to fix the queues in a cothreaded pipeline.Wim Taymans1-1/+2
Original commit message from CVS: A first attempt to fix the queues in a cothreaded pipeline. Some fixes to the thread handling. Fix a bug in gstreamer-config : gthread was not included. gst_bin_create_plan() is now done in the READY state. a bin with only another bin in it will now work with gst_bin_iterate. Added some examples for the queues.
2000-01-30initial checkinErik Walthinsen1-0/+48
Original commit message from CVS: initial checkin