1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414
|
2008-11-13 Christian Hergert <chris@dronelabs.com>
* gtask/gtaskscheduler.c:
* gtask/gtaskscheduler.h:
* gtask/gtaskschedulerpriv.h: Remove TASK_SCHEDULER_PRIVATE().
2008-11-12 Christian Hergert <chris@dronelabs.com>
* gtask/gtask.c: Remove TASK_PRIVATE().
* gtask/gtask.h:
* gtask/gtaskpriv.h:
* gtask/gtaskscheduler.c:
2008-11-11 Christian Hergert <chris@dronelabs.com>
* doc/Makefile.am:
* doc/gtask-figure1.html:
* doc/gtask-header.html:
* doc/gtask.t2t: New drop of documentation.
* doc/processing-chain.png:
2008-11-11 Christian Hergert <chris@dronelabs.com>
* gtask/gtask.c: Add g_task_add_both() and g_task_add_both_closure().
* gtask/gtask.h:
2008-11-11 Christian Hergert <chris@dronelabs.com>
* gtask/gtask.c:
* gtask/gtaskpriv.h: Make GTaskHandler contain both a errback and a
callback so that our processing chains can actualy do interesting
things. other wise we run into problems with our errback handling the
code that is really meant for the next errback. also allows us to
implement g_task_add_both (t, callback, errback).
2008-11-09 Christian Hergert <chris@dronelabs.com>
* bindings/python/gtask.override: Add gtask.schedule which will schedule
a task using the default scheduler.
2008-11-08 Christian Hergert <chris@dronelabs.com>
* gtask/gtask.c: Make sure the result of a task gets stored before its
callback handler chain is executed. This is done by deferring the
state change until AFTER the handle of the result. This took way to
long to debug. We should look into adding method call recording.
2008-11-08 Christian Hergert <chris@dronelabs.com>
* bindings/python/gtask.override: Make passing of python objects work
to and fro the closures. Still broken with a race condition somewhere
though.
* bindings/python/test.py:
* gtask/gtask.c:
* gtask/gtaskscheduler.c:
2008-11-08 Christian Hergert <chris@dronelabs.com>
* bindings/python/Makefile.am:
* bindings/python/gtask.override:
* bindings/python/gtask.override.ideas:
* bindings/python/pygtaskmarshal.c:
* bindings/python/pygtaskmarshal.h:
* bindings/python/pygtaskmarshal.list:
* bindings/python/stamp-pygtaskmarshal.h:
* bindings/python/test.py:
* configure.ac:
* gtask/gtask.c:
* gtask/gtaskversion.h: Lots of work towards getting result and error
passing to and fro callbacks and errbacks. It sort of works, but has
broken much of the C stuff for the time being.
2008-11-06 Christian Hergert <chris@dronelabs.com>
* bindings/python/Makefile.am:
* bindings/python/gtaskmodule.c: Make sure threads are enabled by
default.
2008-11-05 Christian Hergert <chris@dronelabs.com>
* bindings/vala/gtask-1.0.vapi: Track API.
* examples/Makefile.am:
* examples/log-parser.c: Track API.
* examples/simple-feed-view.vala: Track API.
* gtask/gtask.c: Fix a reference count issue and unset the result if a
new task was returned.
* gtask/gtaskscheduler.c: Be more declarative
2008-11-05 Christian Hergert <chris@dronelabs.com>
* gtask/gtask.c: Adjust API more around closures. We now have the
ability to pass results to/fro task func, callbacks, and errbacks.
* gtask/gtask.h:
* gtask/gtaskmarshal.list:
* gtask/gtaskpriv.h:
* gtask/gtaskscheduler.c:
* tests/test-1.c:
* tests/test-3.c:
* tests/test-5.c: Track API.
* tests/test-6.c: New test.
* bindings/vala/gtask-1.0.vapi: Fix typename typo.
2008-11-03 Christian Hergert <chris@dronelabs.com>
* bindings/python/gtask.override: Api tracking.
* bindings/vala/gtask-1.0.vapi: Api tracking.
* gtask/gtask.c: Allow for direct use of closures for callbacks and
errbacks.
* gtask/gtask.h: Move error type to priv, since its not needed.
* gtask/gtaskpriv.h:
2008-11-03 Christian Hergert <chris@dronelabs.com>
* .gitignore:
* gtask/gtask.c: Fix test-5.
* tests/Makefile.am:
* tests/test-5.c: Add test for re-scheduling tasks that have moved
from G_TASK_WAITING state to G_TASK_READY because of dependent tasks.
2008-11-03 Christian Hergert <chris@dronelabs.com>
* .gitignore: Ingore tmpl. We should be doing those docs in code.
* bindings/python/gtask.defs:
* bindings/python/gtask.override: Track Python API changes.
2008-11-02 Christian Hergert <chris@dronelabs.com>
* examples/log-parser.c: Track api changes
2008-11-02 Christian Hergert <chris@dronelabs.com>
* gtask/gtask.c: Clean up private methods, add docs for future hackers
to read.
2008-11-02 Christian Hergert <chris@dronelabs.com>
* .gitignore:
* bindings/vala/gtask-1.0.vapi:
* gtask/Makefile.am:
* gtask/gtask.c: Implement callbacks through GClosure instead of
manually tracking funcs and user_data. We continue to match close to
the same api for the time being, and wrap that closure into a
GCClosure. However, In the future i will be looking to simplify and
change this more.
* gtask/gtask.h:
* gtask/gtaskmarshal.list: New marshal generation.
* gtask/gtaskpriv.h:
* gtask/gtaskscheduler.c:
* tests/test-1.c: Update to new api.
* tests/test-2.c:
* tests/test-3.c:
2008-10-31 Christian Hergert <chris@dronelabs.com>
* configure.ac: Enable python bindings by default
2008-10-31 Christian Hergert <chris@dronelabs.com>
* bindings/python/gtask.override: Always print the error during
dispatch. Clear the previous error if needed.
* bindings/python/gtaskmodule.c: Don't enable threading
ourselves. it doesnt work anyway because gobject.thread_init()
is required. i forsee this being an annoyance with users.
* doc/reference/gtask/tmpl/gtask.sgml:
* doc/reference/gtask/tmpl/gtaskscheduler.sgml:
* examples/simple-feed-view.py: port of the vala version to
python to demonstrate.
2008-10-30 Christian Hergert <chris@dronelabs.com>
* bindings/python/gtask.override: Set an error in the GTask if python
errored during execution.
* gtask/gtask.c: Add a quark to for gtask errors.
* gtask/gtask.h:
* gtask/gtaskscheduler.c: If an error perkelates to the top of the
virtual stack, make sure we write it to the console.
2008-10-30 Christian Hergert <chris@dronelabs.com>
* bindings/python/gtaskmodule.c: Load constants.
* gtask/gtask.c: Take into account cancelled tasks a bit more.
* gtask/gtaskpriv.h: Dont use bit fields here for now.
* gtask/gtaskscheduler.c: Take into account cancelled tasks a bit more.
2008-10-30 Christian Hergert <chris@dronelabs.com>
* bindings/python/gtask.override: Wrap the task in a PyGObject and
pass it to the worker function in python.
2008-10-30 Christian Hergert <chris@dronelabs.com>
* bindings/python/gtask.defs: Update ignore.
* bindings/python/gtask.override: Use the same constructor for both
overloads in C.
2008-10-29 Christian Hergert <chris@dronelabs.com>
* gtask/gtask.c: Add docs for g_task_has_error and g_task_get_error.
2008-10-29 Christian Hergert <chris@dronelabs.com>
* bindings/python/gtask.override: Decrement refcount on pointers and
null there pointers when we are done with them. This needs to be done
here since we do not have a destroy-notify when the task is destroyed.
gtask.Task.add_callback was incorrectly storing the pointers on the
task rather than in a handler (through g_task_add_callback). Add
g_task_add_errback.
2008-10-29 Christian Hergert <chris@dronelabs.com>
* gtask.c: Use the handlers user_data, not the tasks.
2008-10-29 Christian Hergert <chris@dronelabs.com>
* bindings/python/gtask.defs:
* bindings/python/gtask.override:
* bindings/python/gtaskmodule.c: Add use of the python GIL so we dont
segfault. Very much learning the python C api as I go here :-)
2008-10-28 Christian Hergert <chris@dronelabs.com>
* bindings/python/gtask.defs:
* bindings/python/gtask.override:
* gtask/gtask.c:
* gtask/gtask.h:
* gtask/gtaskscheduler.c: Continued work on the python binding. Add
methods for checking if the task errored and retrieve the raw error.
2008-10-28 Christian Hergert <chris@dronelabs.com>
* configure.ac:
* examples/Makefile.am: Check for webkit for our example.
* doc/reference/gtask/tmpl/gtask.sgml:
* doc/reference/gtask/tmpl/gtaskscheduler.sgml: Update some docs.
2008-10-28 Christian Hergert <chris@dronelabs.com>
* .gitignore: Ignores for new python binding.
* acinclude.m4: Automake checks for python.
* bindings/Makefile.am: Call python subfolder.
* bindings/python/Makefile.am:
* bindings/python/gtask.defs:
* bindings/python/gtask.override:
* bindings/python/gtaskmodule.c: Create a basic python binding with the
gobject code generation. Start doing a bit of overrides as well to
provide a nice api for gtask in python.
* configure.ac: Check for python.
* gtask/Makefile.am:
* gtask/gtask.c: Updates for python.
* gtask/gtaskscheduler.h:
2008-10-27 Christian Hergert <chris@dronelabs.com>
* configure.ac:
* examples/Makefile.am: Do not build the rss example unless
rss-glib-1.0 is discovered.
2008-10-17 Christian Hergert <chris@dronelabs.com>
* .gitignore:
* bindings/vala/gtask-1.0.vapi:
* examples/Makefile.am:
* examples/simple-feed-view.vala: Add new example application that takes
in a feed url and parses it with rss-glib. Then renders an overview
using webkit.
2008-10-17 Christian Hergert <chris@dronelabs.com>
* HACKING: Quick overview of the codebase for new hackers.
* TODO: Update TODO with some new work items.
2008-10-16 Christian Hergert <chris@dronelabs.com>
* bindings/vala/gtask-1.0.vapi:
* tests/test-4.vala: Use new static scheduler.
2008-10-16 Christian Hergert <chris@dronelabs.com>
* gtask/gtaskscheduler.c:
* gtask/gtaskscheduler.h: Add g_task_scheduler_get_default() to retrieve
a default scheduler for the process space.
2008-10-16 Christian Hergert <chris@dronelabs.com>
* tests/test-4.vala: Use g_test framework.
2008-10-16 Christian Hergert <chris@dronelabs.com>
* examples/log-parser.c:
* gtask/gtask.c:
* gtask/gtask.h:
* tests/test-1.c:
* tests/test-2.c:
* tests/test-3.c: More work on adjust the API to be more proper. With
the side effect of working better with bindings.
2008-10-16 Christian Hergert <chris@dronelabs.com>
* .gitignore
* Makefile.am
* bindings/Makefile.am
* bindings/vala/Makefile.am
* bindings/vala/gtask-1.0.vapi
* configure.ac
* gtask/gtask.c
* gtask/gtask.h
* gtask/gtaskscheduler.c
* gtask/gtaskscheduler.h
* gtask/gtaskschedulerpriv.h
* tests/Makefile.am
* tests/test-4.vala: Start working on vala bindings.
2008-10-16 Christian Hergert <chris@dronelabs.com>
* .gitignore:
* Makefile.decl:
* tests/Makefile.am: Add gtester for make test in tests/
2008-10-16 Christian Hergert <chris@dronelabs.com>
* gtask/gtaskpriv.h: Make is_async width 1 bit. Make our state 4 bits.
2008-10-16 Christian Hergert <chris@dronelabs.com>
* gtask/gtask.c:
* gtask/gtaskscheduler.c:
* gtask/gtaskschedulerpriv.h: Add a bit more documentation for our
private methods, just so people know whats going on.
2008-10-15 Christian Hergert <chris@dronelabs.com>
* README: Add snippet about our new asynchronous task completion.
2008-10-15 Christian Hergert <chris@dronelabs.com>
* .gitignore:
* Makefile.am:
* configure.ac:
* examples/Makefile.am: Add examples folder.
* examples/log-parser.c: A sample log parser that will parse the date of
each line in log files similar to /var/log/messages.
2008-10-15 Christian Hergert <chris@dronelabs.com>
* .gitignore: Ignore test-3
* doc/reference/gtask/tmpl/gtask.sgml:
* gtask/gtask.c:
* gtask/gtask.h:
* gtask/gtaskpriv.h:
* gtask/gtaskscheduler.c: Add support for asynchronous tasks. That is
tasks that are not completed when g_task_execute returns. These tasks
do not get the benefit of returning a task, so they will need to manage
scheduling other tasks and not setting themselves finished until those
dependent tasks finish.
* tests/Makefile.am: Add test-3.
* tests/test-3.c: New test, includes basic async task support.
2008-10-15 Christian Hergert <chris@dronelabs.com>
* doc/reference/gtask/tmpl/gtask.sgml:
* doc/reference/gtask/tmpl/gtaskscheduler.sgml: Track api updates.
* gtask/gtask.c: Add property for task state. Make the default state
G_TASK_READY, as there are no dependencies by default.
* gtask/gtask.h: Whitespace changes. Add GType for GTaskState.
* gtask/gtaskpriv.h: Whitespace changes
* tests/test-2.c: Add basic test for changing task property state.
2008-10-14 Christian Hergert <chris@dronelabs.com>
* .gitignore:
* doc/reference/gtask/tmpl/gtask-version.sgml:
* doc/reference/gtask/tmpl/gtask.sgml:
* doc/reference/gtask/tmpl/gtaskscheduler.sgml:
* gtask/gtask.c:
* gtask/gtask.h: Update documentation so it is slightly more meaningful
to potential readers.
2008-10-13 Christian Hergert <chris@dronelabs.com>
* gtask/gtask.c:
* gtask/gtask.h:
* tests/test-1.c:
* tests/test-2.c: Refactor GTaskFunc to have user_data as the first
argument. It is the primary piece of data that will be consumed by
a GTaskFunc, so it should really be first. Should also ease bindings
for Vala.
2008-10-13 Christian Hergert <chris@dronelabs.com>
* .: I rewrote things consolidating the API into two primatives. We now
have GTask and GTaskScheduler whom both inherit from GObject. We may
change the iheritance in the future to support things like free lists,
but for now this should work fine.
* doc: Implement support for gtk-doc. We now can generate docs for the
API with --enable-gtk-doc. Most of the API is documented. However we
should look through them and make them better.
2008-10-06 Christian Hergert <chris@dronelabs.com>
* .gitignore: Update to ignore tests.
* configure.ac: Check for packages separately.
* gtask/Makefile.am:
* gtask/gtaskimpl.h: Update ifndef name.
* gtask/gtaskqueue.h:
* tests/Makefile.am: Add makefile for tests.
* tests/test-1.c: First couple of tests.
2008-10-05 Christian Hergert <chris@dronelabs.com>
* .: Initial commit. I don't think much works other than the very
specific test i started. Lots to do still to make this really
something I'd be comfortable using. See the TODO for more
information.
|