Changeset 89e4294 for logging.c


Ignore:
Timestamp:
Aug 5, 2017, 11:21:53 PM (7 years ago)
Author:
Jason Gross <jasongross9@gmail.com>
Branches:
master
Children:
565a43c
Parents:
e38f315
git-author:
Jason Gross <jgross@mit.edu> (08/05/17 21:21:44)
git-committer:
Jason Gross <jasongross9@gmail.com> (08/05/17 23:21:53)
Message:
Add comments to logging.c

We note that defer_logs is only accessed on the disk-writing thread.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • logging.c

    re38f315 r89e4294  
    1111static GMainLoop *log_loop;
    1212static GThread *logging_thread;
    13 static bool defer_logs;
     13static bool defer_logs; /* to be accessed only on the disk-writing thread */
    1414static GQueue *deferred_entry_queue;
    1515
     
    246246 * EPERM, EACCES, or ETIMEDOUT, go into deferred logging mode and
    247247 * queue an admin message.  If it fails with anything else, display an
    248  * error message, but do not go into deferred logging mode. */
     248 * error message, but do not go into deferred logging mode.
     249 *
     250 * N.B. This function is called only on the disk-writing thread. */
    249251static void owl_log_eventually_write_entry(gpointer data)
    250252{
     
    276278}
    277279
    278 /* tries to write the deferred log entries */
     280/* tries to write the deferred log entries
     281 *
     282 * N.B. This function is called only on the disk-writing thread. */
    279283static void owl_log_write_deferred_entries(gpointer data)
    280284{
Note: See TracChangeset for help on using the changeset viewer.